Skip to content

Conversation

@crazy-max
Copy link
Member

@crazy-max crazy-max commented Feb 18, 2025

closes #3040

Switch to reusable workflow distributing multi-platform build across runners for bin-image job: https://github.com/crazy-max/.github?tab=readme-ov-file#bake-distribute-mp

@crazy-max
Copy link
Member Author

Currently it takes almost 20min to build the bin image: https://github.com/docker/buildx/actions/runs/13401108061/job/37432288863

image

With this reusable workflow to distribute multi-platform builds it's ~3min

image

SETUP_BUILDX_VERSION: "edge"
SETUP_BUILDKIT_IMAGE: "moby/buildkit:latest"
SCOUT_VERSION: "1.11.0"
REPO_SLUG: "docker/buildx-bin"
Copy link
Member Author

Choose a reason for hiding this comment

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

Unfortunately we can't use env object in a reusable workflow input atm.

@crazy-max crazy-max requested a review from tonistiigi March 6, 2025 17:42
@crazy-max crazy-max marked this pull request as ready for review March 6, 2025 17:42
@crazy-max crazy-max force-pushed the ci-split-bin-image branch from 6b0b441 to 4dfe3d3 Compare March 11, 2025 15:06
@thompson-shaun thompson-shaun added this to the v0.24.0 milestone Apr 10, 2025
@crazy-max crazy-max modified the milestones: v0.24.0, v0.future May 13, 2025
@crazy-max
Copy link
Member Author

crazy-max commented May 13, 2025

Putting this one back in draft as using git context makes the buildx version being wrong related to #3155

@crazy-max crazy-max marked this pull request as draft May 13, 2025 12:03
@crazy-max crazy-max removed this from the v0.future milestone May 13, 2025
@crazy-max crazy-max force-pushed the ci-split-bin-image branch 2 times, most recently from 64f2286 to a045cbf Compare May 26, 2025 12:07
@crazy-max crazy-max force-pushed the ci-split-bin-image branch 2 times, most recently from 0e5c8ec to 5d6c3bf Compare June 27, 2025 12:55
@crazy-max crazy-max force-pushed the ci-split-bin-image branch from 5d6c3bf to 3761006 Compare June 27, 2025 13:20
buildx-version: edge
buildx-driver-opts: image=moby/buildkit:latest
buildkitd-flags: --debug
bake-source: .
Copy link
Member Author

Choose a reason for hiding this comment

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

Putting this one back in draft as using git context makes the buildx version being wrong related to #3155

Checkout the repository instead of using Git context as temporary workaround

@crazy-max crazy-max marked this pull request as ready for review June 27, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants