Attempt docker release fix

This commit is contained in:
Cohee 2024-05-20 23:03:22 +03:00
parent ab75680ed3
commit dff5ca7e92
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,7 @@ jobs:
run: |
echo "IMAGE_NAME=${REPO,,}" >> ${GITHUB_ENV}
# Using the following workaround because currently GitHub Actions
# Using the following workaround because currently GitHub Actions
# does not support logical AND/OR operations on triggers
# It's currently not possible to have `branches` under the `schedule` trigger
- name: Checkout the release branch (on release)
@ -92,5 +92,6 @@ jobs:
- name: Docker tag latest and push
if: ${{ github.event_name == 'release' }}
run: |
IMAGE_NAME="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
docker tag $IMAGE_NAME:${{ github.ref_name }} $IMAGE_NAME:latest
docker push $IMAGE_NAME:latest