Add github mirroring to ci job

This commit is contained in:
runebaas 2018-01-18 23:59:55 +01:00
parent e5ff638ce4
commit 41f8b1bc0b
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6

View file

@ -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