From ddc57f21f9b7eded2a24f258d7aa4b232c8da732 Mon Sep 17 00:00:00 2001 From: Vianney Veremme <10519369+Vianpyro@users.noreply.github.com> Date: Wed, 15 Oct 2025 03:44:38 -0400 Subject: [PATCH] ci: add multi-platform Docker image support for ARM64 (#1180) * Add support for multiple platforms in Docker build * Enhance Docker workflow with QEMU and Buildx setup Added steps to set up QEMU and Docker Buildx, and login to GitHub Container Registry. * Refactor Docker workflow for improved clarity * Remove duplicate GitHub CR login step Removed duplicate login step for GitHub Container Registry in the Docker workflow. * Reorder Docker Buildx setup in workflow * Rename step to 'Docker Buildx' in workflow --- .github/workflows/docker.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 9dfb779e5..11dc038da 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -52,6 +52,10 @@ jobs: echo "PUMPKIN_VERSION=$(echo $VERSION | cut -d '+' -f 1)" >> $GITHUB_ENV echo "MC_VERSION=$(echo $VERSION | cut -d '+' -f 2)" >> $GITHUB_ENV + - name: Set up QEMU + if: steps.repo_check.outputs.should_deploy == 'true' + uses: docker/setup-qemu-action@v3 + - name: Extract Metadata if: steps.repo_check.outputs.should_deploy == 'true' id: meta @@ -74,7 +78,16 @@ jobs: if: steps.repo_check.outputs.should_deploy == 'true' uses: docker/build-push-action@v6 with: + platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} annotations: ${{ steps.meta.outputs.annotations }} + + - name: Generate SBOM + if: steps.repo_check.outputs.should_deploy == 'true' + uses: anchore/sbom-action@v0 + with: + image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + format: spdx-json + artifact-name: sbom-pumpkin-${{ env.PUMPKIN_VERSION }}