Add github mirroring to ci job
This commit is contained in:
parent
e5ff638ce4
commit
41f8b1bc0b
1 changed files with 10 additions and 1 deletions
|
@ -36,4 +36,13 @@ deploy:
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
script:
|
script:
|
||||||
- rsync -rav -e "ssh -p 65432" ./Geekbot.net/Binaries/* www-data@31.220.42.224:$DEPPATH
|
- rsync -rav -e "ssh -p 65432" ./Geekbot.net/Binaries/* www-data@31.220.42.224:$DEPPATH
|
||||||
- ssh -p 65432 www-data@31.220.42.224 "sudo systemctl restart geekbot.service"
|
- ssh -p 65432 www-data@31.220.42.224 "sudo systemctl restart geekbot.service"
|
||||||
|
|
||||||
|
mirror:
|
||||||
|
stage: deploy
|
||||||
|
image: bravissimolabs/alpine-git:latest
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
script:
|
||||||
|
- git push https://runebaas:$TOKEN@github.com/pizzaandcoffee/Geekbot.net.git origin/master:master -f
|
||||||
|
|
Loading…
Reference in a new issue