Skip to content

mz772: multi-target builds via a JSON bakefile#773

Draft
mzihlmann wants to merge 2 commits into
mainfrom
mz772-multi-target-bake
Draft

mz772: multi-target builds via a JSON bakefile#773
mzihlmann wants to merge 2 commits into
mainfrom
mz772-multi-target-bake

Conversation

@mzihlmann

Copy link
Copy Markdown
Collaborator

Adds a bake subcommand that builds the target named in a small JSON bakefile, with the target stage and push destination owned by the file instead of CLI flags. Everything else (context, dockerfile, build args, cache, registry) stays on the usual flags and is shared, so the bakefile only carries what varies per image. The format is versioned so it can grow into per-target build args and matrix expansion without a breaking change.

This first step handles a single target per bakefile. Building several targets in one pass over the shared stage graph and pushing each is the follow-up, which is where the performance win lands.

Draft until the executor multi-push work is in.

Closes #772

@mzihlmann mzihlmann changed the title Multi-target builds via a JSON bakefile mz772: multi-target builds via a JSON bakefile Jun 8, 2026
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 21.39037% with 147 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/executor/cmd/root.go 36.66% 42 Missing and 15 partials ⚠️
pkg/bake/bake.go 0.00% 56 Missing ⚠️
cmd/executor/cmd/bake.go 17.07% 34 Missing ⚠️

📢 Thoughts on this report? Let us know!

@mzihlmann mzihlmann force-pushed the mz772-multi-target-bake branch 10 times, most recently from 83e5d36 to 82eac4d Compare June 8, 2026 21:29
@mzihlmann mzihlmann force-pushed the mz772-multi-target-bake branch from 82eac4d to 99478dc Compare June 8, 2026 21:41
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.

multi-target builds via a JSON bakefile

1 participant