mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Attempt docker release fix 3
This commit is contained in:
8
.github/workflows/docker-publish.yml
vendored
8
.github/workflows/docker-publish.yml
vendored
@ -65,7 +65,11 @@ jobs:
|
|||||||
id: metadata
|
id: metadata
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||||
tags: ${{ env.BRANCH_NAME }}
|
# Release version tag if the workflow is triggered by a release
|
||||||
|
# Branch name tag if the workflow is triggered by a push
|
||||||
|
tags: |
|
||||||
|
${{ github.event_name == 'release' && github.ref_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
|
||||||
@ -92,7 +96,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: |
|
||||||
IMAGE_NAME="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
|
|
||||||
docker pull $IMAGE_NAME:${{ github.ref_name }}
|
|
||||||
docker tag $IMAGE_NAME:${{ github.ref_name }} $IMAGE_NAME:latest
|
docker tag $IMAGE_NAME:${{ github.ref_name }} $IMAGE_NAME:latest
|
||||||
docker push $IMAGE_NAME:latest
|
docker push $IMAGE_NAME:latest
|
||||||
|
Reference in New Issue
Block a user