.travis-deploy.sh removed

pull/12/head
Szekeres Bálint 2018-02-16 00:36:13 +01:00
parent 0964a1a4f4
commit fe1dbff2b5
3 changed files with 12 additions and 13 deletions

BIN
.deploy_rsa.enc Normal file

Binary file not shown.

View File

@ -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'"

View File

@ -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'"