Skip to content

Build and publish multi-arch Docker images (amd64, arm64) - #6

Merged
CorentinFelten merged 2 commits into
28Pollux28:masterfrom
LounnM:feat/arm64
Oct 27, 2026
Merged

CorentinFelten merged 2 commits into
28Pollux28:masterfrom
LounnM:feat/arm64

Conversation

@LounnM

@LounnM LounnM commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Summary

The published image is only built for linux/amd64, so it can't run on ARM hosts
(Apple Silicon, Graviton, Raspberry Pi, Ampere…). This PR publishes a multi-arch
image (linux/amd64 + linux/arm64) under the same tags.

Changes

  • build.yml / release.yml: add docker/setup-qemu-action and
    platforms: linux/amd64,linux/arm64 to build-push-action
  • Dockerfile: the builder stage runs on $BUILDPLATFORM and cross-compiles with
    GOOS=$TARGETOS GOARCH=$TARGETARCH CGO_ENABLED=0, so Go isn't compiled under
    QEMU emulation. CGO_ENABLED=0 is safe since the SQLite driver
    (glebarez/sqlite → modernc.org/sqlite) is pure Go.
  • CHANGELOG.md: entry under the unreleased section

Testing

  • Build run on my fork: https://github.com/LounnM/galvanize/actions/runs/40570069352
  • The 0.7.3-B1 tag resolves to one manifest list containing both platforms
  • file on the binary extracted from each platform:
    • arm64: ELF 64-bit LSB executable, ARM aarch64, statically linked
    • amd64: ELF 64-bit LSB executable, x86-64, statically linked
  • On Apple Silicon, galvanize --help and ansible --version both run in the arm64 image

@CorentinFelten
CorentinFelten merged commit 4469610 into 28Pollux28:master Oct 27, 2026
2 checks passed
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.

2 participants