Skip to content

mz480: multitarget builds - part 1#485

Draft
mzihlmann wants to merge 28 commits intomainfrom
mz480-multistage-builds-part-1
Draft

mz480: multitarget builds - part 1#485
mzihlmann wants to merge 28 commits intomainfrom
mz480-multistage-builds-part-1

Conversation

@mzihlmann
Copy link
Collaborator

@mzihlmann mzihlmann commented Feb 1, 2026

Fixes #480

Description

First part of multi-target builds. This change allows building of multiple stages, but so far still only pushing a single stage. This allows for use-cases where after build we want to run tests. So far these use-cases had to rely on --skip-unused-stages=false, which we're going to deprecate.

FROM base AS final

FROM final AS test

In this case we could now run --target=final,test. Note that the order is important. The first stage in that list is the stage we're going to push, but it doesn't necessarily need to be the last stage we're going to build.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Describe any changes here so maintainer can include it in the release notes, or delete this block.

Examples of user facing changes:
- kaniko adds a new flag `--registry-repo` to override registry

@mzihlmann mzihlmann changed the title mz480 multistage builds - part 1 mz480: multistage builds - part 1 Feb 1, 2026
@mzihlmann
Copy link
Collaborator Author

let's also add plan and the new "golden tests" here or in a part - 0

@mzihlmann
Copy link
Collaborator Author

@Bixilon I think that would cover your use-case?

@Bixilon
Copy link
Contributor

Bixilon commented Feb 2, 2026

oh yes, precisely!

@mzihlmann mzihlmann force-pushed the mz480-multistage-builds-part-1 branch from 2aad6b7 to 0ae4ca7 Compare February 2, 2026 20:37
@mzihlmann mzihlmann changed the title mz480: multistage builds - part 1 mz480: multitarget builds - part 1 Feb 2, 2026
@mzihlmann mzihlmann force-pushed the mz480-multistage-builds-part-1 branch from 0ae4ca7 to 9304d68 Compare February 2, 2026 20:38
@mzihlmann mzihlmann force-pushed the mz480-multistage-builds-part-1 branch 4 times, most recently from 2a70987 to be93d9f Compare February 2, 2026 23:03
@mzihlmann mzihlmann force-pushed the mz480-multistage-builds-part-1 branch from be93d9f to dd1a1d3 Compare February 2, 2026 23:08
@mzihlmann
Copy link
Collaborator Author

depends on #486 for its integration tests

@mzihlmann mzihlmann force-pushed the mz480-multistage-builds-part-1 branch from dd1a1d3 to 130e8b5 Compare February 15, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

multitarget builds

2 participants