diff options
author | Jakob Odersky <jakob@odersky.com> | 2016-05-20 18:23:31 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2016-05-20 18:23:31 -0700 |
commit | efb5cbc72a0414a9db18a7225fbeb9b73a4c4d3a (patch) | |
tree | 86a98545a3caebc0856f83d2c61467e2f8b456b0 | |
parent | 52c28493d8e452baa5ed1678d086474583b19bc4 (diff) | |
download | dummy-efb5cbc72a0414a9db18a7225fbeb9b73a4c4d3a.tar.gz dummy-efb5cbc72a0414a9db18a7225fbeb9b73a4c4d3a.tar.bz2 dummy-efb5cbc72a0414a9db18a7225fbeb9b73a4c4d3a.zip |
dummy
-rwxr-xr-x | .drone/authenv.sh | 7 | ||||
-rw-r--r-- | project/plugins.sbt | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/.drone/authenv.sh b/.drone/authenv.sh index 024a8bc..3e9a811 100755 --- a/.drone/authenv.sh +++ b/.drone/authenv.sh @@ -6,6 +6,7 @@ set -e +echo "Preparing authenticated environment" if [ -z "$GPG_SSB_ENC" ] || [ -z "$BINTRAY_KEY" ]; then echo "Secrets not defined!" >&2 exit 1 @@ -20,11 +21,10 @@ fi # 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 "Extracting and importing signing key" echo "$GPG_SSB_ENC" | base64 -w 0 -d | gpg --batch --import +echo "Imported signing key" # prepare gpg settings for sbt -echo "Setting up sbt-pgp" cat << EOF > "gpg.sbt" import com.typesafe.sbt.pgp.PgpKeys._ gpgCommand := "/usr/bin/gpg" @@ -32,9 +32,9 @@ useGpg in Global := true pgpSigningKey in Global := Some(0x2CED17AB2B6D6F37l) pgpPassphrase in Global := Some("0000000000".toCharArray) EOF +echo "sbt-pgp ready" # prepare bintray settings -echo "Setting up sbt-bintray" mkdir -p "$HOME/.bintray" cat << EOF > "$HOME/.bintray/.credentials" realm = Bintray API Realm @@ -42,3 +42,4 @@ host = api.bintray.com user = jodersky password = "$BINTRAY_KEY" EOF +echo "sbt-bintray ready" diff --git a/project/plugins.sbt b/project/plugins.sbt new file mode 100644 index 0000000..e1536eb --- /dev/null +++ b/project/plugins.sbt @@ -0,0 +1,3 @@ +addSbtPlugin("com.jsuereth" % "sbt-pgp" % "1.0.0") + +addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0") |