.travis-deploy.sh removed
parent
0964a1a4f4
commit
fe1dbff2b5
Binary file not shown.
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
eval "$(ssh-agent -s)"
|
||||
base64 --decode <<< "$DEPLOY_PRIVATE_KEY" > deploy_key
|
||||
chmod 600 deploy_key
|
||||
ssh-add deploy_key
|
||||
ssh -o "StrictHostKeyChecking no" -l root szekeres.me \
|
||||
"sudo -u www-data -H sh -c ' \
|
||||
cd /var/www/nginxconfig.io; \
|
||||
git pull origin master'"
|
15
.travis.yml
15
.travis.yml
|
@ -1,7 +1,16 @@
|
|||
language: bash
|
||||
|
||||
addons:
|
||||
ssh_known_hosts: nginxconfig.io
|
||||
|
||||
before_deploy:
|
||||
- openssl aes-256-cbc -K $encrypted_c855341ef4be_key -iv $encrypted_c855341ef4be_iv -in .deploy_rsa.enc -out /tmp/deploy_rsa -d
|
||||
- eval "$(ssh-agent -s)"
|
||||
- chmod 600 /tmp/deploy_rsa
|
||||
- ssh-add /tmp/deploy_rsa
|
||||
|
||||
deploy:
|
||||
provider: script
|
||||
script: ./.travis-deploy.sh
|
||||
skip_cleanup: true
|
||||
on:
|
||||
branch: master
|
||||
provider: script
|
||||
script: ssh -q -l root nginxconfig.io "sudo -u www-data -H sh -c 'cd /var/www/nginxconfig.io; git pull origin master'"
|
||||
|
|
Loading…
Reference in New Issue