Skip to content

Commit

Permalink
👷 Multi arch build only on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
adyanth committed May 22, 2022
1 parent f115533 commit 21197d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- "main"
create:
tags:
- "v*"
pull_request:
Expand Down Expand Up @@ -52,7 +53,7 @@ jobs:
uses: docker/build-push-action@v2
with:
context: .
platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm,linux/arm64' }}
platforms: ${{ github.event.ref_type == 'tag' && 'linux/amd64,linux/arm,linux/arm64' || 'linux/amd64' }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 21197d4

Please sign in to comment.