Skip to content

Commit c580852

Browse files
committed
ci: only build arm64 for tags
1 parent 60279f6 commit c580852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,6 @@ jobs:
8585
tags: ${{ steps.meta.outputs.tags }}
8686
labels: ${{ steps.meta.outputs.labels }}
8787
file: docker/Dockerfile.${{matrix.image}}
88-
platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm64' }} # only build for amd64 on PRs to speed up CI job
88+
platforms: ${{ startsWith(github.ref, 'refs/tags/') && 'linux/amd64,linux/arm64' || 'linux/amd64' }} # only build for amd64 on PRs to speed up CI job
8989
cache-from: type=gha
9090
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)