mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-04 12:33:55 -07:00
bind pushing dynamically on successful login
This commit is contained in:
parent
7e7d2e23d5
commit
185828088b
1 changed files with 2 additions and 1 deletions
3
.github/workflows/docker-release.yml
vendored
3
.github/workflows/docker-release.yml
vendored
|
|
@ -58,6 +58,7 @@ jobs:
|
||||||
|
|
||||||
- name: "Login to GitHub Container Registry"
|
- name: "Login to GitHub Container Registry"
|
||||||
if: ${{ github.event_name == 'release' && github.event.release.prerelease == false }}
|
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.event_name == 'release' && github.event.release.prerelease == false }}
|
push: ${{ steps.login.outcome == 'success' }}
|
||||||
tags: ${{ steps.metadata.outputs.tags }}
|
tags: ${{ steps.metadata.outputs.tags }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue