Update .gitlab-ci.yml

This commit is contained in:
Christoph Haas 2018-03-10 11:35:47 +01:00
parent d52b02333d
commit 5801005870
1 changed files with 3 additions and 2 deletions

View File

@ -20,12 +20,13 @@ mirror-github:
# overwrite your user's ssh config
#- mkdir -p ~/.ssh
#- 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
# Mirror push it to the destination
- cd $CI_PROJECT_NAME.git
- git push --mirror $MIRROR_REPOSITORY
- cd ..; rm $CI_PROJECT_NAME.git
# Cleanup
- cd ..; rm -rf $CI_PROJECT_NAME.git
#mirror-master:
# stage: deploy