travis beta deploy

This commit is contained in:
Szekeres Bálint 2019-01-06 15:53:21 +01:00
parent a3116b5102
commit e56d195338
2 changed files with 11 additions and 6 deletions

View file

@ -24,8 +24,13 @@ before_deploy:
- ssh-add /tmp/deploy_rsa
deploy:
provider: script
script: bash .travis_deploy.sh
skip_cleanup: true
on:
branch: master
- provider: script
script: bash .travis_deploy.sh /var/www/nginxconfig.io/
skip_cleanup: true
on:
branch: master
- provider: script
script: bash .travis_deploy.sh var/www/beta.nginxconfig.io/
skip_cleanup: true
on:
branch: beta

View file

@ -16,4 +16,4 @@ rsync \
--exclude="/.git*" \
--exclude="/node_modules*" \
./ \
www-data@nginxconfig.io:/var/www/nginxconfig.io/
www-data@nginxconfig.io:$1