From 41f8b1bc0b00a3fa71ff9fd665596a5d37132111 Mon Sep 17 00:00:00 2001 From: runebaas Date: Thu, 18 Jan 2018 23:59:55 +0100 Subject: [PATCH] Add github mirroring to ci job --- .gitlab-ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e8963d8..4be995d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,4 +36,13 @@ deploy: - chmod 700 ~/.ssh script: - 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" \ No newline at end of file + - 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 + \ No newline at end of file