fix & harmonize login+push conditions

This commit is contained in:
tooomm 2026-06-28 12:58:31 +02:00 committed by GitHub
parent fcac7493ad
commit 7e7d2e23d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -57,7 +57,7 @@ jobs:
uses: docker/setup-buildx-action@v4
- name: "Login to GitHub Container Registry"
if: contains(github.event.release.tag_name, 'Release') && github.event.release.target_commitish == 'master'
if: ${{ github.event_name == 'release' && github.event.release.prerelease == false }}
uses: docker/login-action@v4
with:
password: ${{ github.token }}
@ -73,5 +73,5 @@ jobs:
context: .
labels: ${{ steps.metadata.outputs.labels }}
platforms: linux/amd64,linux/arm64
push: ${{ github.ref_type == 'tag' }}
push: ${{ github.event_name == 'release' && github.event.release.prerelease == false }}
tags: ${{ steps.metadata.outputs.tags }}