From c1d450d9db072045bea27e826a162de681c06a3c Mon Sep 17 00:00:00 2001 From: Nick DiZazzo Date: Sat, 3 May 2025 21:47:57 -0400 Subject: [PATCH] [TASK] Add arm64 platform build --- .github/workflows/docker-publish.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index eb8df72..a4b4bba 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -7,11 +7,11 @@ name: Docker on: push: - branches: [ master ] + branches: [master] # Publish semver tags as releases. - tags: [ 'v*.*.*' ] + tags: ["v*.*.*"] pull_request: - branches: [ master ] + branches: [master] env: # Use docker.io for Docker Hub if empty @@ -19,10 +19,8 @@ env: # github.repository as / IMAGE_NAME: ${{ github.repository }} - jobs: build: - runs-on: ubuntu-latest permissions: contents: read @@ -34,19 +32,21 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 - + + # Required to build arm64 image + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 # Install the cosign tool (not used on PR, still installed) # https://github.com/sigstore/cosign-installer - name: Install cosign uses: sigstore/cosign-installer@main with: - cosign-release: 'v2.2.3' + cosign-release: "v2.2.3" - name: Check cosign version run: cosign version - # Workaround: https://github.com/docker/build-push-action/issues/461 - name: Setup Docker buildx uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf @@ -82,6 +82,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + platforms: linux/amd64,linux/arm64 # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker