Skip to content

Instantly share code, notes, and snippets.

@kevalpatel2106
Created January 31, 2017 06:05
Show Gist options
  • Save kevalpatel2106/4162ba5c417277e4654fa4b2cd474ad5 to your computer and use it in GitHub Desktop.
Save kevalpatel2106/4162ba5c417277e4654fa4b2cd474ad5 to your computer and use it in GitHub Desktop.
#!/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