Skip to content

Commit 8d599ee

Browse files
committed
cosign fix #2
1 parent 2aca290 commit 8d599ee

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ssh-key-signer-server-docker.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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
@@ -101,5 +98,5 @@ jobs:
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

0 commit comments

Comments
 (0)