Skip to content

Enable multiplatform builds#264

Merged
bschwedler merged 10 commits intomainfrom
enable-multiplatform-building
Nov 25, 2025
Merged

Enable multiplatform builds#264
bschwedler merged 10 commits intomainfrom
enable-multiplatform-building

Conversation

@ianpittwood
Copy link
Contributor

Closes #262

  • Adds the platforms configuration option to ImageVersionOS to specify target platforms to build for an image.
  • Adds a --platform multi-entry option for bakery build to override the targeted build platforms at runtime.
  • Keeps default target platform set to linux/amd64 for all images if no configuration or option is given.

@github-actions
Copy link

github-actions bot commented Nov 10, 2025

Test Results

792 tests   792 ✅  8m 59s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit 94c6a8e.

♻️ This comment has been updated with latest results.

plan: Annotated[Optional[bool], typer.Option(help="Print the bake plan and exit.")] = False,
load: Annotated[Optional[bool], typer.Option(help="Load the image to Docker after building.")] = True,
push: Annotated[Optional[bool], typer.Option(help="Push the image to the registry after building.")] = False,
platform: Annotated[
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused about the singular vs plural here.

Does it have the ability to specify the --platform flag multiple times?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but you have to do in the style of --platform linux/amd64 --platform linux/arm64. I guess I thought it might be confusing to do --platforms since that would imply in my mind that you should do --platforms linux/amd64,linux/arm64 or something like that. It would be possible to do it that way of course. I don't know, do you have an opinion on which is easier?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! I agree, specifying it each time is more clear.

@bschwedler bschwedler merged commit f5d37ea into main Nov 25, 2025
6 checks passed
@bschwedler bschwedler deleted the enable-multiplatform-building branch November 25, 2025 14:51
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.

Enable multi-platform builds for bakery build

2 participants