diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 3eb442b5..98ab6031 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -52,7 +52,7 @@ jobs: - name: Build and push uses: docker/build-push-action@v5 with: - platforms: ${{ inputs.arm64 && 'linux/amd64,linux/arm64' || '' }} + platforms: ${{ (github.event_name == 'push' || inputs.arm64) && 'linux/amd64,linux/arm64' || '' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | # Julia's Pkg expects a Git repository