Skip to content

Add multi-architecture Docker image support (amd64, arm64, arm/v7)#5

Merged
fffaraz merged 2 commits intomasterfrom
copilot/add-cpu-architecture-support
Mar 20, 2026
Merged

Add multi-architecture Docker image support (amd64, arm64, arm/v7)#5
fffaraz merged 2 commits intomasterfrom
copilot/add-cpu-architecture-support

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 20, 2026

Docker image only supported amd64. This adds arm64 and arm/v7 support via Buildx multi-platform builds.

  • Add docker/setup-qemu-action@v3 for cross-platform emulation
  • Add platforms: linux/amd64,linux/arm64,linux/arm/v7 to the build-push step

No Dockerfile changes needed — CGO_ENABLED=0, golang:alpine, and scratch are already multi-arch compatible.

Original prompt

This section details on the original issue you should resolve

<issue_title>Is support for devices with other cpu architectures being considered?</issue_title>
<issue_description>I found that the image on docker hub seems to only support amd64 as the architecture of the cpu, please consider supporting devices of other architectures? Such as armv7, v7l, v8 architectures?</issue_description>

Comments on the Issue (you are @copilot in this section)

@fffaraz Please consider contributing. PRs are welcome!

📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

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
Copilot AI requested a review from fffaraz March 20, 2026 18:12
@fffaraz fffaraz marked this pull request as ready for review March 20, 2026 18:15
@fffaraz fffaraz requested a review from Copilot March 20, 2026 18:16
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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' }}
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
@fffaraz fffaraz merged commit 77bd16b into master Mar 20, 2026
6 checks passed
@fffaraz fffaraz deleted the copilot/add-cpu-architecture-support branch March 20, 2026 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Is support for devices with other cpu architectures being considered?

3 participants