From d4918c3b6788089a34ff53f8472b60675a93e834 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 21 Aug 2016 16:55:51 +0200 Subject: [PATCH] Added github as mirror. --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 41fc64d4d..0858b2b9d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,6 +33,16 @@ pre:bundle-audit: - bundle-audit update - bundle-audit +pre:github: + stage: pre + script: + - git checkout $CI_BUILD_REF_NAME + - git pull --rebase origin $CI_BUILD_REF_NAME + - git filter-branch --force --index-filter "git rm --cached --ignore-unmatch './.gitlab-ci.yml'" --prune-empty --tag-name-filter cat -- $CI_BUILD_REF_NAME + - if git remote | grep github > /dev/null; then git remote rm github; fi + - git remote add github git@github.com:martini/zammad-test.git + - git push github $CI_BUILD_REF_NAME + test:unit:mysql: stage: test tags: