fix(ci): use native arm64 runners for multi-platform Docker builds#327
Merged
fix(ci): use native arm64 runners for multi-platform Docker builds#327
Conversation
Replace QEMU-emulated arm64 builds with native `ubuntu-24.04-arm` runners using the digest-merge pattern. Splits the single `push-image` job into `build` (per-platform on native runners) and `merge` (assemble multi-arch manifest via `docker buildx imagetools create`). This eliminates the ~40 minute QEMU bottleneck caused by compiling native modules (isolated-vm) under emulation.
Reduces release noise from daily Renovate patch bumps. Manual releases are still available via workflow_dispatch.
eb2b52f to
59d3437
Compare
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
Replace QEMU-emulated arm64 builds with native
ubuntu-24.04-armrunners using the digest-merge pattern. The singlepush-imagejob is split into abuildjob (per-platform on native runners, push by digest) and amergejob (assemble multi-arch manifest viadocker buildx imagetools create). This eliminates the ~40 minute QEMU bottleneck caused by compiling native modules (isolated-vm) under emulation.Also changes the release schedule from daily to weekly (Mondays at 5am UTC) to reduce noise from Renovate patch bumps.
Decisions & callouts
scope=build-node{N}-linux-{arch}) to prevent cross-platform cache thrashing. The first run after merge will be a full cache miss.fail-fast: falseon the build matrix so a failure on one platform doesn't cancel the other.set -euo pipefailfor robustness.IMAGE_NAMEis lowercased at job start becausegithub.repositoryreturns mixed-case which Docker rejects in theoutputsname parameter.Manual testing
workflow_dispatchon this branchubuntu-latest, arm64 onubuntu-24.04-arm)docker buildx imagetools inspect ghcr.io/jomik/screeps-server:sha-09dbb3aand confirm bothlinux/amd64andlinux/arm64are listed