Travis CI

pull/3/head
Szekeres Bálint 2018-01-13 12:17:25 +01:00
parent d9453899ef
commit 85efa0461d
3 changed files with 18 additions and 0 deletions

View File

@ -9,3 +9,6 @@ end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.yml]
indent_style = space
indent_size = 2

10
.travis-deploy.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
eval "$(ssh-agent -s)"
echo "$DEPLOY_PRIVATE_KEY" > deploy_key
chmod 600 deploy_key
ssh-add deploy_key
ssh -l root szekeres.me \
"sudo -u www-data -H sh -c ' \
cd /var/www/nginxconfig.io; \
git pull origin master'"

5
.travis.yml Normal file
View File

@ -0,0 +1,5 @@
deploy:
provider: script
script: .travis-deploy.sh
on:
- master