From 5801005870eda70a3e1e6bccfb9310fe2070d2f6 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sat, 10 Mar 2018 11:35:47 +0100 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 399d1b7..c6f120b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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