File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed
Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -22,18 +22,8 @@ git config --local user.name "github-actions[bot]"
2222mkdir -p " ${HOME} /.m2"
2323cp .ci.settings.xml " ${HOME} " /.m2/settings.xml
2424
25- # First run: decrypt secrets using alpine/openssl image
26- docker run --rm -v " ${PWD} " :/usr/src/build \
27- -w /usr/src/build \
28- -e encrypted_96e73e3cb232_key \
29- -e encrypted_96e73e3cb232_iv \
30- -e encrypted_00fae8efff8c_key \
31- -e encrypted_00fae8efff8c_iv \
32- --entrypoint " " \
33- alpine/openssl \
34- /bin/sh .ci.prepare-ssh-gpg.sh
35-
36- # Second run: setup keys and execute maven command using the current image
25+ # Execute decryption, setup keys and execute maven command using a single image
26+ # We install openssl in case it's missing in the maven image
3727docker run --rm -v " ${PWD} " :/usr/src/build \
3828 -v " ${HOME} /.m2" :/root/.m2 \
3929 -w /usr/src/build \
@@ -46,7 +36,7 @@ docker run --rm -v "${PWD}":/usr/src/build \
4636 -e GPG_KEY_NAME \
4737 -e GPG_PASSPHRASE \
4838 maven:3.9-eclipse-temurin-" ${JDK_VERSION} " \
49- /bin/bash -c " cd dockerfile-image-update && mvn --quiet --batch-mode deploy -P release scm:tag -Drevision=${NEW_PATCH_VERSION} "
39+ /bin/bash -c " apt-get update && apt-get install -y openssl && source .ci.prepare-ssh-gpg.sh && cd dockerfile-image-update && mvn --quiet --batch-mode deploy -P release scm:tag -Drevision=${NEW_PATCH_VERSION} "
5040
5141# Get MVN_VERSION
5242MVN_VERSION=$( cat ./dockerfile-image-update/target/classes/version.txt)
You can’t perform that action at this time.
0 commit comments