Skip to content

Commit

Permalink
Deploy multi-platform docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
ianschmitz authored and ansukla committed Feb 9, 2024
1 parent 8f1bcb4 commit 554feb1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 554feb1

Please sign in to comment.