mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 17:36:22 +01:00
Attempt docker release fix 4
This commit is contained in:
parent
68ade7b384
commit
3d3914645d
7
.github/workflows/docker-publish.yml
vendored
7
.github/workflows/docker-publish.yml
vendored
@ -68,8 +68,7 @@ jobs:
|
|||||||
# Release version tag if the workflow is triggered by a release
|
# Release version tag if the workflow is triggered by a release
|
||||||
# Branch name tag if the workflow is triggered by a push
|
# Branch name tag if the workflow is triggered by a push
|
||||||
tags: |
|
tags: |
|
||||||
${{ github.event_name == 'release' && github.ref_name }}
|
${{ github.event_name == 'release' && github.ref_name || env.BRANCH_NAME }}
|
||||||
${{ github.event_name != 'release' && env.BRANCH_NAME }}
|
|
||||||
|
|
||||||
# Login into package repository as the person who created the release
|
# Login into package repository as the person who created the release
|
||||||
- name: Log in to the Container registry
|
- name: Log in to the Container registry
|
||||||
@ -96,5 +95,5 @@ jobs:
|
|||||||
- name: Docker tag latest and push
|
- name: Docker tag latest and push
|
||||||
if: ${{ github.event_name == 'release' }}
|
if: ${{ github.event_name == 'release' }}
|
||||||
run: |
|
run: |
|
||||||
docker tag $IMAGE_NAME:${{ github.ref_name }} $IMAGE_NAME:latest
|
docker tag ${{ env.IMAGE_NAME }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
docker push $IMAGE_NAME:latest
|
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user