ci: publish linux/amd64+arm64 multi-arch images - #4
Merged
Conversation
Adds docker/setup-qemu-action and platforms: linux/amd64,linux/arm64 to the existing docker/build-push-action step so the GHCR tag becomes a real multi-arch manifest list instead of an amd64-only image. No changes to image names, tag scheme (metadata-action config untouched), GHCR auth, or job triggers -- only the build step gains QEMU emulation support and the platforms list. All of this Dockerfile's runtime dependencies are pure-Python or ship prebuilt manylinux aarch64 wheels, and the base image already publishes an arm64 variant, so no other Dockerfile changes were needed. Validated locally with docker buildx build --platform linux/amd64,linux/arm64 against this Dockerfile before this change. Co-Authored-By: Claude Sonnet 5 <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.
Problem
ghcr.io/omnibioai/omnibioai-toolserver:latestis currently published as an amd64-only image. On an arm64 host (e.g. linux/arm64/v8), the container fails immediately with:This is because the existing
docker/build-push-actionstep in.github/workflows/ci.ymlnever setplatforms, so Buildx defaulted to the runner's native architecture (amd64) only, and the pushed tag is a single-arch image, not a manifest list.Fix
CI is updated to build and publish a genuine multi-arch image for both
linux/amd64andlinux/arm64:docker/setup-qemu-action@v3so the amd64 GitHub-hosted runner can emulate arm64 to actually execute that leg of the build.platforms: linux/amd64,linux/arm64to the existingdocker/build-push-actionstep, so the resulting GHCR tag is a manifest list covering both architectures.Nothing else changes:
type=semver,type=raw,value=latest), GHCR login/auth, and job trigger (refs/tags/v*, gated onneeds: lint-and-test) are all untouched.requirements.txt(fastapi,uvicorn,httpx,pydantic,pyyaml) is pure-Python or ships prebuilt manylinux aarch64 wheels (pydantic-core), andpython:3.12-slim-bookwormalready publishes an arm64 variant.Validation performed
.github/workflows/ci.ymlparsed successfully withyaml.safe_loadafter the change.docker buildx build --platform linux/amd64,linux/arm64(via a local multiarch/QEMU-enabled builder) — both thelinux/amd64andlinux/arm64legs completed successfully.Not in this PR
nginx-router,docker-compose.yml, or any other repository.v*.*.*tag push, same as today.