Push Docker image to preview for -rc tags
Some checks failed
Run Tests on Code / test (push) Has been cancelled
Some checks failed
Run Tests on Code / test (push) Has been cancelled
This commit is contained in:
parent
009d75bd2a
commit
4eeb81fe17
1 changed files with 10 additions and 1 deletions
|
@ -59,12 +59,21 @@ jobs:
|
|||
registry: forgejo.neshweb.net
|
||||
username: ${{ secrets.FORGEJO_USERNAME }}
|
||||
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
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
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:
|
||||
needs: build
|
||||
|
|
Loading…
Reference in a new issue