mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-03 09:49:15 +02:00
travis: add encrypted ssh secret key
This commit is contained in:
parent
34a7a42c13
commit
18eb05dd01
2 changed files with 4 additions and 6 deletions
BIN
.credentials/delta.id_rsa.enc
Normal file
BIN
.credentials/delta.id_rsa.enc
Normal file
Binary file not shown.
|
@ -4,8 +4,8 @@ set -u
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
#Only attempt to deploy if we know the ssh key secrets, username and server
|
#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_49475b8073e9_key:+decryp_key} ; then exit 0; fi
|
||||||
if test -z ${encrypted_ee89c1e228aa_iv:+decrypt_iv} ; 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_USER:+username} ; then exit 0; fi
|
||||||
if test -z ${DEPLOY_SERVER:+server} ; 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.
|
# Decrypting the ssh private key for deploying to the server.
|
||||||
# See https://docs.travis-ci.com/user/encrypting-files/ for details.
|
# See https://docs.travis-ci.com/user/encrypting-files/ for details.
|
||||||
mkdir -p -m 0700 ~/.ssh
|
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
|
chmod 600 ~/.ssh/id_rsa
|
||||||
cat .credentials/autocrypt.org.hostkeys >> ~/.ssh/known_hosts
|
|
||||||
printf "Host *\n" >> ~/.ssh/config
|
printf "Host *\n" >> ~/.ssh/config
|
||||||
printf " %sAuthentication no\n" ChallengeResponse Password KbdInteractive >> ~/.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
|
# Perform the actual deploy
|
||||||
rsync -avz $TRAVIS_BUILD_DIR/doc/_build/html/ \
|
rsync -avz $TRAVIS_BUILD_DIR/doc/_build/html/ \
|
||||||
${DEPLOY_USER}@${DEPLOY_SERVER}:build/${TRAVIS_BRANCH/\//_}
|
${DEPLOY_USER}@${DEPLOY_SERVER}:build/${TRAVIS_BRANCH/\//_}
|
||||||
rsync -avz $TRAVIS_BUILD_DIR/doc/_build/latex/autocrypt*.pdf \
|
|
||||||
${DEPLOY_USER}@${DEPLOY_SERVER}:build/${TRAVIS_BRANCH/\//_}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue