perf(ci): add setup-qemu-action step for multi-arch Docker image builds - #480
Open
farrasrayhand wants to merge 2 commits into
Open
perf(ci): add setup-qemu-action step for multi-arch Docker image builds#480farrasrayhand wants to merge 2 commits into
farrasrayhand wants to merge 2 commits into
Conversation
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.
Rationale & Motivation
When publishing multi-architecture Docker images (
linux/amd64andlinux/arm64) for OpenShip (openship-api,openship-dashboard,openship-edge,openship-mail), GitHub Actions runner builds forarm64were taking over 2 hours or hanging indefinitely duringbun run build.Root Cause
arm64in.github/workflows/docker-images.ymlwas set toubuntu-24.04-arm(missing64). GitHub's official native ARM runner label isubuntu-24.04-arm64. Because of this typo, GitHub Actions fell back to x86_64 runners running user-space QEMU emulation.docker/setup-qemu-action@v3was missing prior todocker/setup-buildx-action@v3, causing Buildx syscall emulation bottlenecks when cross-compiling Next.js/React bundles under Docker.Key Changes
runner: ubuntu-24.04-armtorunner: ubuntu-24.04-arm64in.github/workflows/docker-images.ymlmatrix.docker/setup-qemu-action@v3step beforedocker/setup-buildx-action@v3.Impact