Skip to content

Commit

Permalink
Contains the following changes:
Browse files Browse the repository at this point in the history
* Adds encrypted pubring to the repository
* Replaces encrypted secring
* Adds a check to stop execution if decryption fails
  • Loading branch information
abhinayagarwal committed Jul 19, 2019
1 parent 262f783 commit 92698eb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Binary file added .ci/pubring.gpg.enc
Binary file not shown.
7 changes: 6 additions & 1 deletion .ci/release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/usr/bin/env bash

# Decrypt encrypted files
openssl aes-256-cbc -K $encrypted_8795c864beda_key -iv $encrypted_8795c864beda_iv -in .ci/secring.gpg.enc -out secring.gpg -d
openssl aes-256-cbc -K $encrypted_04317ab43744_key -iv $encrypted_04317ab43744_iv -in .ci/secring.gpg.enc -out secring.gpg -d
openssl aes-256-cbc -K $encrypted_04317ab43744_key -iv $encrypted_04317ab43744_iv -in .ci/pubring.gpg.enc -out pubring.gpg -d
if [[ ! -s pubring.gpg || ! -s secring.gpg ]]
then echo "Decryption failed."
exit 1
fi

# Release artifacts
cp .travis.settings.xml $HOME/.m2/settings.xml && mvn deploy -DskipTests=true -B -U -Prelease
Expand Down
Binary file modified .ci/secring.gpg.enc
Binary file not shown.
5 changes: 4 additions & 1 deletion .travis.settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
<gpg.executable>${GPG_EXECUTABLE}</gpg.executable>
<gpg.keyname>${GPG_KEYNAME}</gpg.keyname>
<gpg.passphrase>${GPG_PASSPHRASE}</gpg.passphrase>
<!-- Tell gpg to NOT use the default keyring from the current user's home -->
<gpg.defaultKeyring>false</gpg.defaultKeyring>
<gpg.homedir>/home/travis/build/javafx-maven-plugin/</gpg.homedir>
<!-- Tell gpg to use the keyrings -->
<gpg.publicKeyring>${TRAVIS_BUILD_DIR}/pubring.gpg</gpg.publicKeyring>
<gpg.secretKeyring>${TRAVIS_BUILD_DIR}/secring.gpg</gpg.secretKeyring>
</properties>
</profile>
</profiles>
Expand Down

0 comments on commit 92698eb

Please sign in to comment.