mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-06 05:23:56 -07:00
CI: Fix login+push for publishing Servatrice Docker images (#7023)
This commit is contained in:
parent
808d991489
commit
f3b41432cb
1 changed files with 4 additions and 3 deletions
7
.github/workflows/docker-release.yml
vendored
7
.github/workflows/docker-release.yml
vendored
|
|
@ -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 }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue