FIx Actions tag variables
This commit is contained in:
parent
798bf7cba9
commit
7248b26278
1 changed files with 5 additions and 4 deletions
|
@ -61,19 +61,20 @@ jobs:
|
|||
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||
-
|
||||
name: Determine Docker tags
|
||||
id: tags
|
||||
run: |
|
||||
if github.ref_name | grep -qi '\-rc' ; then
|
||||
LATEST=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:preview;
|
||||
echo "latest=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:preview" >> "$GITHUB:OUTPUT";
|
||||
else
|
||||
LATEST=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:latest;
|
||||
echo "latest=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:latest" >> "$GITHUB:OUTPUT";
|
||||
fi
|
||||
VERSION=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:${{ github.ref_name }}
|
||||
echo "version=forgejo.neshweb.net/neshweb-sites/${{ github.event.repository.name }}:${{ github.ref_name }}" >> "$GITHUB:OUTPUT";
|
||||
-
|
||||
name: Push to Package Registry
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
||||
tags: $VERSION, $LATEST
|
||||
tags: ${{ steps.tags.outputs.version }}, ${{ steps.tags.outputs.latest }}
|
||||
|
||||
release:
|
||||
needs: build
|
||||
|
|
Loading…
Reference in a new issue