From bc1add8acc59d921790c275d100d1c1b67c95074 Mon Sep 17 00:00:00 2001 From: miwr Date: Thu, 24 Apr 2025 13:33:49 +0200 Subject: [PATCH] ${{ steps.get-version.outputs.tag }} --- .forgejo/workflows/deploy.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml index c1b312d..50e3e16 100644 --- a/.forgejo/workflows/deploy.yaml +++ b/.forgejo/workflows/deploy.yaml @@ -51,7 +51,11 @@ jobs: run: | chmod +x update-version.sh ./update-version.sh + - name: Extract version from pom.xml + id: get-version + run: | TAG=$(awk '// {count++; if(count == 2) print $0}' pom.xml | sed -n 's|.*\([^<]*\).*|\1|p') + echo "tag=$TAG" >> "$GITHUB_OUTPUT" - name: Build and push uses: docker/build-push-action@v6 with: @@ -59,4 +63,4 @@ jobs: allow: network.host network: host platforms: linux/arm64 - tags: ${TAG} + tags: ${{ steps.get-version.outputs.tag }}