Add multi-architecture Docker image support (amd64, arm64, arm/v7)#5
Merged
Add multi-architecture Docker image support (amd64, arm64, arm/v7)#5
Conversation
Co-authored-by: fffaraz <895678+fffaraz@users.noreply.github.com> Agent-Logs-Url: https://github.com/fffaraz/fakessh/sessions/ec11c290-bdbf-42a4-9af0-3768eba877a1
Copilot
AI
changed the title
[WIP] Add support for additional cpu architectures in Docker image
Add multi-architecture Docker image support (amd64, arm64, arm/v7)
Mar 20, 2026
There was a problem hiding this comment.
Pull request overview
Adds multi-architecture container image builds to the existing GitHub Actions Docker workflow so the published GHCR image supports amd64, arm64, and arm/v7.
Changes:
- Add QEMU emulation setup via
docker/setup-qemu-action@v3. - Configure Buildx to build/push a multi-platform manifest (
linux/amd64, linux/arm64, linux/arm/v7).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
46
to
50
| uses: docker/build-push-action@v6 | ||
| with: | ||
| context: . | ||
| platforms: linux/amd64,linux/arm64,linux/arm/v7 | ||
| push: ${{ github.event_name == 'push' }} |
There was a problem hiding this comment.
platforms: linux/amd64,linux/arm64,linux/arm/v7 will make pull_request runs build all 3 architectures under QEMU, which materially increases CI time and can make PR checks slow/flake-prone. Consider using multi-arch only on push (release) builds and limiting PR builds to a single platform (e.g., linux/amd64), and gating the QEMU setup accordingly.
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.
Docker image only supported amd64. This adds arm64 and arm/v7 support via Buildx multi-platform builds.
docker/setup-qemu-action@v3for cross-platform emulationplatforms: linux/amd64,linux/arm64,linux/arm/v7to the build-push stepNo Dockerfile changes needed —
CGO_ENABLED=0,golang:alpine, andscratchare already multi-arch compatible.Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.