Update .gitlab-ci.yml

This commit is contained in:
Christoph Haas 2018-03-09 17:13:23 +01:00
parent 54a5c94e30
commit 634ac8aeee

View File

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