Update .gitlab-ci.yml

This commit is contained in:
Christoph Haas 2018-03-09 17:13:23 +01:00
parent 54a5c94e30
commit 634ac8aeee
1 changed files with 13 additions and 13 deletions

View File

@ -7,18 +7,18 @@ variables:
mirror-master: mirror-master:
stage: deploy stage: deploy
only: # only:
- master # - master
script: script:
- git remote add upstream $UPSTREAM_REPOSITORY || true - git remote add --mirror upstream $UPSTREAM_REPOSITORY || true
- git fetch upstream # - git fetch upstream
- git push --progress upstream HEAD:$UPSTREAM_BRANCH # - git push --progress upstream HEAD:$UPSTREAM_BRANCH
mirror-tags: #mirror-tags:
stage: deploy # stage: deploy
only: # only:
- tags # - tags
script: # script:
- git remote add upstream $UPSTREAM_REPOSITORY || true # - git remote add upstream $UPSTREAM_REPOSITORY || true
- git fetch upstream # - git fetch upstream
- git push --progress --tags upstream # - git push --progress --tags upstream