Only build ARM64 images on pushes to main
This commit is contained in:
parent
643a8c2d69
commit
3d072f9cdf
1 changed files with 2 additions and 1 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -34,7 +34,8 @@ jobs:
|
|||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
platforms: |
|
||||
${{ github.event_name == 'push' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
|
||||
push: ${{ github.event_name == 'push' }}
|
||||
build-args: GITHUB_SHA
|
||||
tags: ekzhang/rustpad:latest
|
||||
|
|
Loading…
Add table
Reference in a new issue