msqur/deploy.sh

17 lines
452 B
Bash
Raw Normal View History

2019-10-14 19:10:49 -07:00
#. script.config
2015-03-20 11:23:56 -07:00
2019-10-31 12:33:56 -07:00
# mkdir -p ~/.ssh
2019-10-31 09:01:43 -07:00
openssl aes-256-cbc -K $encrypted_571de2096706_key -iv $encrypted_571de2096706_iv -in .travis/travis_ci.enc -out .travis/id_rsa -d
2019-10-14 19:10:49 -07:00
eval "$(ssh-agent -s)"
chmod 600 .travis/id_rsa
ssh-add .travis/id_rsa
2019-10-14 19:10:49 -07:00
#TODO Run backup script on remote
2019-11-05 08:21:09 -08:00
git rev-parse HEAD | cut -b -7 > src/VERSION
rsync -av --delete --exclude-from 'deploy_excludes.txt' -e "ssh -o StrictHostKeyChecking=no" src/ $DEPLOY_HOST/
2019-10-14 19:10:49 -07:00
rm .travis/id_rsa