Created
January 31, 2017 06:05
-
-
Save kevalpatel2106/4162ba5c417277e4654fa4b2cd474ad5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# use curl to download a keystore from $KEYSTORE_URI, if set, | |
# to the path/filename set in $KEYSTORE. | |
if [[ KEY_STORE && ${KEY_STORE} && $KEYSTORE_URI && ${KEYSTORE_URI} ]] | |
then | |
echo "Keystore detected - downloading..." | |
# we're using curl instead of wget because it will not | |
# expose the sensitive uri in the build logs: | |
curl -L -o ${KEY_STORE} ${KEYSTORE_URI} | |
else | |
echo "Keystore uri not set. .APK artifact will not be signed." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment