FIx Actions tag variables
Some checks failed
Run Tests on Code / test (push) Successful in 20s
Build and Release Docker Image / test (push) Successful in 18s
Build and Release Docker Image / build (push) Failing after 21s
Build and Release Docker Image / release (push) Has been skipped

This commit is contained in:
Neshura 2024-01-01 20:33:29 +01:00
parent 798bf7cba9
commit 7248b26278
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -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