Update .gitlab-ci.yml

This commit is contained in:
Christoph Haas 2018-03-09 17:05:19 +01:00
parent 06a14e608c
commit 50fa6bf476
1 changed files with 24 additions and 2 deletions

View File

@ -1,2 +1,24 @@
job1:
script: "/tmp/run.sh"
before_script:
- ssh-keyscan -t rsa,dsa,ecdsa github.com > /etc/ssh/ssh_known_hosts
variables:
UPSTREAM_REPOSITORY: "git@github.com:h44z/atestproject.git"
UPSTREAM_BRANCH: "master"
mirror-master:
stage: deploy
only:
- master
script:
- git remote add 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