Push Docker image to preview for -rc tags
Some checks failed
Run Tests on Code / test (push) Has been cancelled

This commit is contained in:
Neshura 2024-01-01 19:44:39 +01:00
parent 009d75bd2a
commit 4eeb81fe17
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -59,12 +59,21 @@ jobs:
registry: forgejo.neshweb.net registry: forgejo.neshweb.net
username: ${{ secrets.FORGEJO_USERNAME }} username: ${{ secrets.FORGEJO_USERNAME }}
password: ${{ secrets.FORGEJO_TOKEN }} password: ${{ secrets.FORGEJO_TOKEN }}
-
name: Determine Docker tags
run: |
if github.ref_name | grep -qi '\-rc' ; then
LATEST=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:preview;
else
LATEST=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:latest;
fi
VERSION=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:${{ github.ref_name }}
- -
name: Push to Package Registry name: Push to Package Registry
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
push: true push: true
tags: forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:${{ github.ref_name }}, forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:latest tags: $VERSION, $LATEST
release: release:
needs: build needs: build