From 293c62ff54162de798f83a3fca4b3bf2bad2e5d5 Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Sat, 8 Jun 2024 11:43:28 +0200 Subject: [PATCH] ci: build arm64 docker image Adding support to build arm64 docker images. --- .github/workflows/docker-publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 2d37c230..931231c7 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -44,6 +44,9 @@ jobs: with: cosign-release: 'v1.4.1' + # Required to build arm64 image + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 # Workaround: https://github.com/docker/build-push-action/issues/461 - name: Setup Docker buildx @@ -80,6 +83,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