fix(release): set up QEMU and Buildx before multi-arch Docker builds - #33
Open
abienkowski wants to merge 1 commit into
Open
fix(release): set up QEMU and Buildx before multi-arch Docker builds#33abienkowski wants to merge 1 commit into
abienkowski wants to merge 1 commit into
Conversation
The Go and Rust image steps build for linux/amd64,linux/arm64 but the jobs never created a buildx builder, so build-push-action ran on the default `docker` driver and failed every release since #31: ERROR: failed to build: Multi-platform build is not supported for the docker driver. b15a6aa added setup-buildx-action but with a mis-indented `- if:` that made the workflow unparseable; 15c0e28 then dropped the step again while fixing the YAML. Re-add it (correctly indented) before each GHCR login, plus setup-qemu-action: both Dockerfiles compile inside the image per target platform, so the arm64 leg needs binfmt emulation. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #34
Why every release since #31 is red
release-go (amd64)andrelease-rust (x86_64…)fail at the multi-arch image step:The jobs build
linux/amd64,linux/arm64but never create a buildx builder. b15a6aa addeddocker/setup-buildx-actionwith a mis-indented- if:(YAML failed to parse, run had zero jobs); 15c0e28 removed the step again while fixing the indentation, somainis back to the docker driver.Fix
Add
docker/setup-qemu-action@v3+docker/setup-buildx-action@v3before eachLog in to GHCRstep (Go amd64 leg, Rust amd64 leg, TS). QEMU is required as well: both Dockerfiles compile inside the image for each target platform, so the arm64 leg runs under emulation (expect that leg to be slow).Once merged, the next push to
mainreleases as v0.2.18. The v0.2.15–v0.2.17 draft prereleases left behind by the failed runs can be deleted independently.🤖 Generated with Claude Code