Update .gitlab-ci.yml

This commit is contained in:
Christoph Haas 2018-03-10 11:35:47 +01:00
parent d52b02333d
commit 5801005870

View File

@ -20,12 +20,13 @@ mirror-github:
# overwrite your user's ssh config # overwrite your user's ssh config
#- mkdir -p ~/.ssh #- mkdir -p ~/.ssh
#- cp deploy/known_hosts ~/.ssh/known_hosts #- cp deploy/known_hosts ~/.ssh/known_hosts
# Do a bare clone of the repository # Do a mirror clone of the repository
- git clone --mirror $CI_REPOSITORY_URL - git clone --mirror $CI_REPOSITORY_URL
# Mirror push it to the destination # Mirror push it to the destination
- cd $CI_PROJECT_NAME.git - cd $CI_PROJECT_NAME.git
- git push --mirror $MIRROR_REPOSITORY - git push --mirror $MIRROR_REPOSITORY
- cd ..; rm $CI_PROJECT_NAME.git # Cleanup
- cd ..; rm -rf $CI_PROJECT_NAME.git
#mirror-master: #mirror-master:
# stage: deploy # stage: deploy