ci: add back snapshot workflow

This commit is contained in:
Harsh Shandilya 2021-08-29 19:50:32 +05:30
parent fda68b13c0
commit cd013ef821
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80
7 changed files with 100 additions and 0 deletions

17
scripts/signing-setup.sh Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
ENCRYPT_KEY="${1:-}"
declare -A SECRETS
SECRETS[secrets/keystore.cipher]=keystore.jks
SECRETS[secrets/props.cipher]=keystore.properties
if [[ -n "$ENCRYPT_KEY" ]]; then
for src in "${!SECRETS[@]}"; do
openssl enc -aes-256-cbc -md sha256 -pbkdf2 -d -in "${src}" -out "${SECRETS[${src}]}" -k "${ENCRYPT_KEY}"
done
else
echo "Usage: ./signing-setup.sh <encryption key>"
fi