bind pushing dynamically on successful login

This commit is contained in:
tooomm 2026-06-28 14:33:19 +02:00 committed by GitHub
parent 7e7d2e23d5
commit 185828088b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,6 +58,7 @@ jobs:
- name: "Login to GitHub Container Registry"
if: ${{ github.event_name == 'release' && github.event.release.prerelease == false }}
id: login
uses: docker/login-action@v4
with:
password: ${{ github.token }}
@ -73,5 +74,5 @@ jobs:
context: .
labels: ${{ steps.metadata.outputs.labels }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'release' && github.event.release.prerelease == false }}
push: ${{ steps.login.outcome == 'success' }}
tags: ${{ steps.metadata.outputs.tags }}