Add arm64 multi-arch release artifacts (closes #26) - #31
Merged
Merged
Conversation
- Add conditional 'if: matrix.goarch == amd64' to Docker, SBOM, and Cosign steps - This ensures these operations run only once in the amd64 matrix job - Add 'platforms: linux/amd64,linux/arm64' to docker/build-push-action - buildx now creates a single multi-arch image index in one operation - This eliminates the race condition where both matrix jobs push to the same tag - Avoids concurrent SBOM filename collisions and Cosign signature races - Single-arch binaries still build independently in both matrix jobs (correct)
…H (reproducible-build)
abienkowski
added a commit
that referenced
this pull request
Sep 13, 2026
Multi-platform builds require Docker buildx to use the docker-container driver. GitHub Actions runners need this action to enable docker-container driver, otherwise buildx defaults to the docker driver which doesn't support multi-arch. This fixes the 'Multi-platform build is not supported for the docker driver' error that occurred after PR #31 added multi-arch Docker image builds.
This was referenced Sep 13, 2026
abienkowski
added a commit
that referenced
this pull request
Sep 14, 2026
…33) 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.
Summary
Implements full arm64 support across all three implementations (Go, Rust, TypeScript), enabling releases and deployments on arm64 servers (Hetzner CAX31, AWS Graviton, Oracle Ampere, etc.).
Closes: #26
What's Included
Binary Releases
CGO_ENABLED=0(statically linked)x86_64-unknown-linux-musl,aarch64-unknown-linux-musl)Asset naming:
docker-socket-policy-{go,rs,ts}-linux-{amd64,arm64}Docker Images
docker pull— correct architecture selected per hostplatforms: linux/amd64,linux/arm64Release Workflow
if: matrix.arch_name == 'amd64') to prevent race conditions on image registryDocumentation
Impact
Unblocks: ChainSafe/lodestar-infrastructure#9 (docker-socket-policy Ansible role deployment)
The 3x Hetzner CAX31 arm64 hosts in the lodestar fleet (stable-arm64, unstable-arm64, beta-arm64) now have a fully supported install path:
Implementation Details
Go (Task 1)
goarch: [amd64, arm64]CGO_ENABLED: 0,GOOS: linux,GOARCH: ${{ matrix.goarch }}Rust (Task 2)
.cargo/Cross.tomlfor cross-compilation configx86_64-unknown-linux-musl→ amd64aarch64-unknown-linux-musl→ arm64crosstool for arm64 cross-compilationDockerfiles (Task 3)
--platform=linux/amd64pins from all FROM statements${TARGETARCH}for GOARCH (buildx auto-detect)${TARGETPLATFORM}with case statement mapping to Rust target triplesVerification (Task 8)
Testing
All changes validated via:
Related Issues
Builds on:
Enables resolution of: