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 }}
|
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Determine Docker tags
|
name: Determine Docker tags
|
||||||
|
id: tags
|
||||||
run: |
|
run: |
|
||||||
if github.ref_name | grep -qi '\-rc' ; then
|
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
|
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
|
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
|
name: Push to Package Registry
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: $VERSION, $LATEST
|
tags: ${{ steps.tags.outputs.version }}, ${{ steps.tags.outputs.latest }}
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
|
|
Loading…
Reference in a new issue