From 7248b2627861c8da429f7f950f301d74f975dc19 Mon Sep 17 00:00:00 2001 From: Neshura Date: Mon, 1 Jan 2024 20:33:29 +0100 Subject: [PATCH] FIx Actions tag variables --- .forgejo/workflows/build+release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/build+release.yml b/.forgejo/workflows/build+release.yml index 156c4db..612f5d4 100644 --- a/.forgejo/workflows/build+release.yml +++ b/.forgejo/workflows/build+release.yml @@ -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