mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-19 10:13:19 +08:00
Travis CI
This commit is contained in:
@@ -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
10
.travis-deploy.sh
Executable 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
5
.travis.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
deploy:
|
||||
provider: script
|
||||
script: .travis-deploy.sh
|
||||
on:
|
||||
- master
|
Reference in New Issue
Block a user