Skip to content

Commit fea34f6

Browse files
authored
chore: use gpg2 to sign the packages (#160)
1 parent a74d178 commit fea34f6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.kokoro/release.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
22

3+
# Stop execution when any command fails.
4+
set -e
5+
36
# Get secrets from keystore and set and environment variables.
47
setup_environment_secrets() {
58
export SONATYPE_USERNAME=functions-framework-release-bot
@@ -11,7 +14,7 @@ setup_environment_secrets() {
1114
mkdir $GNUPGHOME
1215
mv ${KOKORO_KEYSTORE_DIR}/75669_functions-framework-java-release-bot-gpg-pubring $GNUPGHOME/pubring.kbx
1316
# Restart the gpg-agent to avoid the error of no default secret key.
14-
gpg -k
17+
gpg2 -k
1518
}
1619

1720
create_settings_xml_file() {
@@ -62,6 +65,6 @@ echo "JAVA_HOME=$JAVA_HOME"
6265
mvn clean deploy -B \
6366
-P sonatype-oss-release \
6467
--settings=../settings.xml \
65-
-Dgpg.executable=gpg \
68+
-Dgpg.executable=gpg2 \
6669
-Dgpg.passphrase=${GPG_PASSPHRASE} \
6770
-Dgpg.homedir=${GNUPGHOME}

0 commit comments

Comments
 (0)