2018-03-09 17:07:58 +01:00
|
|
|
#before_script:
|
|
|
|
# - ssh-keyscan -t rsa,dsa,ecdsa github.com > /etc/ssh/ssh_known_hosts
|
2018-03-09 17:05:19 +01:00
|
|
|
|
|
|
|
variables:
|
|
|
|
UPSTREAM_REPOSITORY: "git@github.com:h44z/atestproject.git"
|
|
|
|
UPSTREAM_BRANCH: "master"
|
|
|
|
|
|
|
|
mirror-master:
|
|
|
|
stage: deploy
|
2018-03-09 17:13:23 +01:00
|
|
|
# only:
|
|
|
|
# - master
|
2018-03-09 17:05:19 +01:00
|
|
|
script:
|
2018-03-09 17:14:34 +01:00
|
|
|
- git remote add --mirror=push github $UPSTREAM_REPOSITORY || true
|
2018-03-09 17:15:26 +01:00
|
|
|
- git push --quiet github
|
2018-03-09 17:13:23 +01:00
|
|
|
# - git fetch upstream
|
|
|
|
# - git push --progress upstream HEAD:$UPSTREAM_BRANCH
|
2018-03-09 17:05:19 +01:00
|
|
|
|
2018-03-09 17:13:23 +01:00
|
|
|
#mirror-tags:
|
|
|
|
# stage: deploy
|
|
|
|
# only:
|
|
|
|
# - tags
|
|
|
|
# script:
|
|
|
|
# - git remote add upstream $UPSTREAM_REPOSITORY || true
|
|
|
|
# - git fetch upstream
|
|
|
|
# - git push --progress --tags upstream
|