File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,19 @@ git config --local user.name "github-actions[bot]"
2121# Set up Maven settings and release
2222mkdir -p " ${HOME} /.m2"
2323cp .ci.settings.xml " ${HOME} " /.m2/settings.xml
24+
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
2437docker run --rm -v " ${PWD} " :/usr/src/build \
2538 -v " ${HOME} /.m2" :/root/.m2 \
2639 -w /usr/src/build \
@@ -32,7 +45,7 @@ docker run --rm -v "${PWD}":/usr/src/build \
3245 -e CI_DEPLOY_PASSWORD \
3346 -e GPG_KEY_NAME \
3447 -e GPG_PASSPHRASE \
35- maven:3.6-openjdk -" ${JDK_VERSION} " \
48+ maven:3.6-jdk -" ${JDK_VERSION} " \
3649 /bin/bash -c " source .ci.prepare-ssh-gpg.sh && cd dockerfile-image-update && mvn --quiet --batch-mode deploy -P release scm:tag -Drevision=${NEW_PATCH_VERSION} "
3750
3851# Get MVN_VERSION
You can’t perform that action at this time.
0 commit comments