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