From 554feb13b9dbf628853940d3a7f27c01ee09a30f Mon Sep 17 00:00:00 2001 From: Ian Schmitz Date: Thu, 8 Feb 2024 16:40:52 -0800 Subject: [PATCH] Deploy multi-platform docker image --- .github/workflows/docker-publish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 549d185..b455a63 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -39,13 +39,16 @@ jobs: with: cosign-release: 'v2.1.1' + # Setup QEMU for multi-platform build support + # https://docs.docker.com/build/ci/github-actions/multi-platform/ + - name: Set up QEMU + uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 #v3.0.0 + # Set up BuildKit Docker container builder to be able to build # multi-platform images and export cache # https://github.com/docker/setup-buildx-action - name: Set up Docker Buildx uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 - with: - platforms: linux/amd64,linux/arm64,linux/arm64/v8,windows/amd64,linux/arm/v7 # Login against a Docker registry except on PR # https://github.com/docker/login-action @@ -72,6 +75,7 @@ jobs: uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 with: context: . + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}