From b6cd790c6b37c2785090262219692282b5b2129b Mon Sep 17 00:00:00 2001 From: Matt Glaman Date: Thu, 6 Nov 2025 12:17:40 -0600 Subject: [PATCH 1/2] Add multi-platform Docker build support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enable building for both AMD64 and ARM64 architectures by adding QEMU and Docker Buildx setup steps. This resolves compatibility issues for users on Apple Silicon machines. Fixes #1 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/PublishDockerImage.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/PublishDockerImage.yml b/.github/workflows/PublishDockerImage.yml index e9b06a8..abcab55 100644 --- a/.github/workflows/PublishDockerImage.yml +++ b/.github/workflows/PublishDockerImage.yml @@ -24,6 +24,12 @@ jobs: - name: Checkout repository uses: actions/checkout@v5 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to the Container registry uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 with: @@ -49,6 +55,7 @@ jobs: uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 with: context: . + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} From 68e13c76b8d2dd62d6c59058ff6c549cd2dd272e Mon Sep 17 00:00:00 2001 From: Sally Young Date: Fri, 7 Nov 2025 11:58:20 +0000 Subject: [PATCH 2/2] Create a separate workflow for PRs --- .github/workflows/BuildDockerImage.yml | 42 ++++++++++++++++++++++++ .github/workflows/PublishDockerImage.yml | 2 -- 2 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/BuildDockerImage.yml diff --git a/.github/workflows/BuildDockerImage.yml b/.github/workflows/BuildDockerImage.yml new file mode 100644 index 0000000..8dfd46d --- /dev/null +++ b/.github/workflows/BuildDockerImage.yml @@ -0,0 +1,42 @@ +name: Create a Docker image + +on: + pull_request: + types: [opened, synchronize, reopened] + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + build-and-push-image: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=ref,event=pr + type=sha + + - name: Build Docker image + uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: false + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/.github/workflows/PublishDockerImage.yml b/.github/workflows/PublishDockerImage.yml index abcab55..bf3b559 100644 --- a/.github/workflows/PublishDockerImage.yml +++ b/.github/workflows/PublishDockerImage.yml @@ -5,8 +5,6 @@ on: branches: ['main'] tags: - 'v*.*.*' - pull_request: - types: [opened, synchronize, reopened] env: REGISTRY: ghcr.io