mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 12:33:55 -07:00
fix & harmonize login+push conditions
This commit is contained in:
parent
fcac7493ad
commit
7e7d2e23d5
1 changed files with 2 additions and 2 deletions
4
.github/workflows/docker-release.yml
vendored
4
.github/workflows/docker-release.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue