From e7840c2c90396d304319979542e850a631c1c46e Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Fri, 20 May 2016 19:59:14 -0700 Subject: dummy --- .drone/authenv.sh | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to '.drone') diff --git a/.drone/authenv.sh b/.drone/authenv.sh index 28be07c..ba9bc01 100755 --- a/.drone/authenv.sh +++ b/.drone/authenv.sh @@ -8,36 +8,33 @@ set -e echo "Preparing authenticated environment" +# Veridy that this script is running in a CI environment and has +# secrets available if [ -z "CI" ]; then echo "This script should be run in a CI environment. Aborting." exit 1 fi - if [ -z "$SECURE" ] || [ "$SECURE" = "\$\$SECURE" ]; then echo "Secrets not defined. Aborting." >&2 exit 1 fi -# import public key from key servers -#echo "Getting public key" -#gpg2 --batch --keyserver hkp://pool.sks-keyservers.net --recv-keys 4E7DA7B5A0F86992D6EB3F514601878662E33372 - -# import secret signing sub key +# Import secret signing sub key. # -# although the key is encrypted as a drone secret, it must also be encrypted -# with a passphrase since gpg2 does not allow exporting keys with empty passwords -# https://bugs.gnupg.org/gnupg/issue2070 +# Although the key is encrypted as a drone secret, it must also be +# encrypted with a passphrase since gpg2 does not allow exporting keys +# with empty passwords https://bugs.gnupg.org/gnupg/issue2070 echo "$GPG_SSB_ENC" | base64 -w 0 -d | gpg --batch --import echo "Imported signing key" -# prepare gpg settings for sbt +# Prepare gpg settings for sbt cat << EOF > "gpg.sbt" pgpSigningKey in Global := Some(0x2CED17AB2B6D6F37l) pgpPassphrase in Global := Some("0000000000".toCharArray) EOF echo "sbt-pgp ready" -# prepare bintray settings +# Prepare bintray settings mkdir -p "$HOME/.bintray" cat << EOF > "$HOME/.bintray/.credentials" realm = Bintray API Realm -- cgit v1.2.3