CI: Fix login+push for publishing Servatrice Docker images (#7023)

This commit is contained in:
tooomm 2026-07-06 07:01:12 +02:00 committed by GitHub
parent 808d991489
commit f3b41432cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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