aboutsummaryrefslogtreecommitdiff
path: root/.drone
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2016-05-20 19:59:14 -0700
committerJakob Odersky <jakob@odersky.com>2016-05-20 19:59:14 -0700
commite7840c2c90396d304319979542e850a631c1c46e (patch)
treeb0ecf30a6b4057d5083fb84e11e23793d9d3cb90 /.drone
parent0d3b5488edb959626cc5be001de2c816cb8deda9 (diff)
downloaddummy-e7840c2c90396d304319979542e850a631c1c46e.tar.gz
dummy-e7840c2c90396d304319979542e850a631c1c46e.tar.bz2
dummy-e7840c2c90396d304319979542e850a631c1c46e.zip
dummy
Diffstat (limited to '.drone')
-rwxr-xr-x.drone/authenv.sh19
1 files changed, 8 insertions, 11 deletions
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