Skip to content

Commit

Permalink
Add multi-arch build support
Browse files Browse the repository at this point in the history
  • Loading branch information
tmknight committed Jul 23, 2023
1 parent 49eaa42 commit 309a5f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/github-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ jobs:
## cosign-release: 'v1.11.0'
cosign-release: ${{ env.COSIGN_VER }}

## Setup QEMU for multi-arch
## https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: amd64,arm64

# Workaround: https://github.com/docker/build-push-action/issues/461
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
Expand Down Expand Up @@ -96,6 +103,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
file: ${{ env.IMAGE }}.dockerfile
build-args: ${{ env.BUILD_ARGS }}
push: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit 309a5f9

Please sign in to comment.