There was an error while loading. Please reload this page.
1 parent c613d19 commit b1f3d6cCopy full SHA for b1f3d6c
1 file changed
.github/workflows/docker.yml
@@ -42,7 +42,7 @@ jobs:
42
43
# calculate the version and all tags
44
if [ "$BRANCH" == "main" ]; then
45
- VERSION="$(xpath -q -e 'project/version/text()' pom.xml)"
+ VERSION="$(cat pom.xml | grep "<version>.*</version>" | head -1 |awk -F'[><]' '{print $3}')"
46
tags="latest"
47
oldversion=""
48
tmpversion="${VERSION}"
0 commit comments