ci(docker): build multi-arch images (amd64 + arm64)#5648
Open
DavertMik wants to merge 1 commit into
Open
Conversation
…base Closes #5646 - Add QEMU setup and build linux/amd64,linux/arm64 in docker.yml so the Docker Hub image resolves to a multi-arch manifest - Bump base image to mcr.microsoft.com/playwright:v1.61.0-noble (latest, ships arm64) to match the project's playwright dependency Co-Authored-By: Claude Opus 4.8 <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
Closes #5646 — the Docker Hub image (
codeceptjs/codeceptjs) currently ships amd64 only. This PR makes the published image multi-arch so it works natively on ARM64 (Apple Silicon, AWS Graviton, Raspberry Pi, etc.).Changes
.github/workflows/docker.ymldocker/setup-qemu-action@v3to enable arm64 emulation during the build.platforms: linux/amd64,linux/arm64tobuild-push-action, producing a single multi-arch manifest.docker pull codeceptjs/codeceptjsthen resolves to the right architecture automatically.Dockerfilemcr.microsoft.com/playwright:v1.55.0-noble→v1.61.0-noble(latest). This release ships an arm64 manifest and matches the project'splaywright ^1.59.0dependency, so the image's bundled browsers line up with the installed package.Why this is sufficient
v1.61.0-noblepublishes bothamd64andarm64manifests (verified viadocker manifest inspect).libgtk2.0-0,libxtst6,xvfb, …) exist for both arches on Ubuntu Noble.docker/entrypointanddocker/run.share plain shell, architecture-agnostic.Notes / tradeoffs
npm installstep in particular). If build time becomes a problem, a follow-up could split the build across native runners (ubuntu-22.04+ubuntu-22.04-arm) and merge manifests withdocker buildx imagetools.🤖 Generated with Claude Code