Resolve deploy key from secrets

This commit is contained in:
Owen Voke
2020-06-24 13:30:09 +01:00
committed by Marco Bonelli
parent 5e958f6074
commit 7e3ca9c540
2 changed files with 4 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ function initialize {
# Decrypt and add deploy key.
eval "$(ssh-agent -s)"
openssl aes-256-cbc -K "$encrypted_973441be79af_key" -iv "$encrypted_973441be79af_iv" -in ./scripts/id_ed25519_tldr_asset_upload.enc -out id_ed25519 -d
echo "${DEPLOY_KEY}"> id_ed25519
chmod 600 id_ed25519
ssh-add id_ed25519
}