File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -37,17 +37,14 @@ jobs:
3737 distribution : ' temurin'
3838 cache : maven
3939
40- - name : install xmllint
41- run : sudo apt install -y libxml2-utils
42-
4340 - name : build with maven
4441 run : mvn clean package --projects ${{ env.PROJECT }} --also-make --batch-mode -Pproduction
4542
4643 - name : extract project version
4744 id : extract_version
4845 run : |
49- echo "MAVEN_NAME=$(xmllint --xpath '/*[local-name()=" project"]/*[local-name()=" artifactId"]/text()' ${{ env.PROJECT }}/pom.xml )" >> $GITHUB_OUTPUT
50- echo "MAVEN_VERSION=$(xmllint --xpath '/*[local-name()=" project"]/*[local-name()=" version"]/text()' ${{ env.PROJECT }}/pom.xml )" >> $GITHUB_OUTPUT
46+ echo "MAVEN_NAME=$(mvn help:evaluate -Dexpression= project. artifactId --projects ${{ env.PROJECT }} -q -DforceStdout )" >> $GITHUB_OUTPUT
47+ echo "MAVEN_VERSION=$(mvn help:evaluate -Dexpression= project. version --projects ${{ env.PROJECT }} -q -DforceStdout )" >> $GITHUB_OUTPUT
5148
5249 - name : login to docker hub
5350 uses : docker/login-action@v3
10198 DIGEST : ${{ steps.build-and-push.outputs.digest }}
10299 run : |
103100 echo "${TAGS}" | while read tag; do
104- cosign sign --key cosign.key $tag
101+ cosign sign --key cosign.key --yes $tag
105102 done
You can’t perform that action at this time.
0 commit comments