Add CI
This commit is contained in:
parent
4b01fd7f5f
commit
e3188ceb58
|
@ -0,0 +1,9 @@
|
|||
pipeline:
|
||||
master:
|
||||
image: machines/ssh
|
||||
commands:
|
||||
- mkdir -p ~/.ssh
|
||||
- echo "$PRIVKEY $privkey" > ~/.ssh/id_rsa
|
||||
- chmod 700 ~/.ssh && chmod 600 ~/.ssh/id_rsa
|
||||
- ssh websiteupdate@172.19.0.1 -p1813 -i ~/.ssh/id_rsa "cd /var/www/websitenew/blog && git config pull.rebase true && git pull && git reset --hard origin/master && make"
|
||||
secrets: [ privkey ]
|
Loading…
Reference in New Issue