mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
Droid 66 CI/CD | Integrate distribution of debug nightly builds for testing into our CI pipeline (#2443)
This commit is contained in:
parent
cb85ff786d
commit
0056dae8a7
11 changed files with 131 additions and 6 deletions
BIN
scripts/distribution/anytype-debug-service-account-key.gpg
Normal file
BIN
scripts/distribution/anytype-debug-service-account-key.gpg
Normal file
Binary file not shown.
4
scripts/distribution/clean-secrets.sh
Executable file
4
scripts/distribution/clean-secrets.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Delete debug service account key
|
||||
rm -f scripts/distribution/anytype-debug-service-account-key.json
|
14
scripts/distribution/decrypt-secrets.sh
Executable file
14
scripts/distribution/decrypt-secrets.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
decrypt() {
|
||||
PASSPHRASE=$1
|
||||
INPUT=$2
|
||||
OUTPUT=$3
|
||||
gpg --quiet --batch --yes --decrypt --passphrase="$PASSPHRASE" --output $OUTPUT $INPUT
|
||||
}
|
||||
|
||||
if [[ ! -z "$ENCRYPT_KEY" ]]; then
|
||||
decrypt ${ENCRYPT_KEY} scripts/distribution/anytype-debug-service-account-key.gpg scripts/distribution/anytype-debug-service-account-key.json
|
||||
else
|
||||
echo "ENCRYPT_KEY is empty"
|
||||
fi
|
14
scripts/distribution/encrypt-secrets.sh
Executable file
14
scripts/distribution/encrypt-secrets.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
encrypt() {
|
||||
PASSPHRASE=$1
|
||||
INPUT=$2
|
||||
OUTPUT=$3
|
||||
gpg --batch --yes --passphrase="$PASSPHRASE" --cipher-algo AES256 --symmetric --output $OUTPUT $INPUT
|
||||
}
|
||||
|
||||
if [[ ! -z "$ENCRYPT_KEY" ]]; then
|
||||
encrypt ${ENCRYPT_KEY} scripts/distribution/anytype-debug-service-account-key.json scripts/distribution/anytype-debug-service-account-key.gpg
|
||||
else
|
||||
echo "ENCRYPT_KEY is empty"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue