Skip to content

Commit

Permalink
Merge pull request #56 from adyanth/conditional-build-platform
Browse files Browse the repository at this point in the history
Prevent building multi-arch images for all PRs
  • Loading branch information
adyanth committed Apr 15, 2022
2 parents 7860467 + 6e85479 commit 7f89dfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm,linux/arm64' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 7f89dfe

Please sign in to comment.