Add gitlab mirror script

This commit is contained in:
Michael Watzko 2018-03-18 20:48:15 +01:00
commit 9cdb8cdf15
2 changed files with 11 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,3 +1,3 @@
*.iml
/target
**/*.rs.bk

10
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,10 @@
# version 1.1.0
mirror:
script:
- git config --global push.default simple
- git config --global push.followTags true
- git checkout -f ${CI_COMMIT_REF_NAME}
- git pull origin ${CI_COMMIT_REF_NAME}
- git push -q https://${GITHUB_USERNAME}:${GITHUB_TOKEN}@github.com/${GITHUB_REPO}.git --all