Push only for main and release

This commit is contained in:
SebClem 2024-08-26 16:07:29 +02:00
parent eef0bbf78a
commit 3469908fc7
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -146,7 +146,7 @@ jobs:
- name: Build and push ${{matrix.arch}}
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
push: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.event_name == 'release') }}
tags: ${{ steps.meta.outputs.tags }}
labels: |
${{ steps.meta.outputs.labels }}