This commit is contained in:
parent
4a17dda647
commit
bc1add8acc
1 changed files with 5 additions and 1 deletions
|
@ -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 '/<version>/ {count++; if(count == 2) print $0}' pom.xml | sed -n 's|.*<version>\([^<]*\)</version>.*|\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 }}
|
||||
|
|
Loading…
Reference in a new issue