diff --git a/.credentials/delta.id_rsa.enc b/.credentials/delta.id_rsa.enc new file mode 100644 index 00000000..66b76b19 Binary files /dev/null and b/.credentials/delta.id_rsa.enc differ diff --git a/.scripts/deploy.sh b/.scripts/deploy.sh index 3653d1ae..c9d91024 100755 --- a/.scripts/deploy.sh +++ b/.scripts/deploy.sh @@ -4,8 +4,8 @@ set -u set -x #Only attempt to deploy if we know the ssh key secrets, username and server -if test -z ${encrypted_ee89c1e228aa_key:+decryp_key} ; then exit 0; fi -if test -z ${encrypted_ee89c1e228aa_iv:+decrypt_iv} ; then exit 0; fi +if test -z ${encrypted_49475b8073e9_key:+decryp_key} ; then exit 0; fi +if test -z ${encrypted_49475b8073e9_iv:+decrypt_iv} ; then exit 0; fi if test -z ${DEPLOY_USER:+username} ; then exit 0; fi if test -z ${DEPLOY_SERVER:+server} ; then exit 0; fi @@ -14,9 +14,9 @@ if test -z ${DEPLOY_SERVER:+server} ; then exit 0; fi # Decrypting the ssh private key for deploying to the server. # See https://docs.travis-ci.com/user/encrypting-files/ for details. mkdir -p -m 0700 ~/.ssh -openssl aes-256-cbc -K $encrypted_ee89c1e228aa_key -iv $encrypted_ee89c1e228aa_iv -in .credentials/autocrypt.id_rsa.enc -out ~/.ssh/id_rsa -d +openssl aes-256-cbc -K $encrypted_49475b8073e9_key -iv $encrypted_49475b8073e9_iv + -in .credentials/delta.id_rsa.enc -out ~/.ssh/id_rsa -d chmod 600 ~/.ssh/id_rsa -cat .credentials/autocrypt.org.hostkeys >> ~/.ssh/known_hosts printf "Host *\n" >> ~/.ssh/config printf " %sAuthentication no\n" ChallengeResponse Password KbdInteractive >> ~/.ssh/config @@ -24,5 +24,3 @@ printf " %sAuthentication no\n" ChallengeResponse Password KbdInteractive >> ~/. # Perform the actual deploy rsync -avz $TRAVIS_BUILD_DIR/doc/_build/html/ \ ${DEPLOY_USER}@${DEPLOY_SERVER}:build/${TRAVIS_BRANCH/\//_} -rsync -avz $TRAVIS_BUILD_DIR/doc/_build/latex/autocrypt*.pdf \ - ${DEPLOY_USER}@${DEPLOY_SERVER}:build/${TRAVIS_BRANCH/\//_}