From 867de9197028b8d8f55c9ec46f398e8ada62cd8d Mon Sep 17 00:00:00 2001 From: "[1000i100] Millicent Billette" <git@1000i100.fr> Date: Fri, 23 Apr 2021 03:02:29 +0200 Subject: [PATCH] CI: auto mirror --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 15e20e4..a8e223c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,9 +36,9 @@ build: - ssh-keyscan $GIT_MIRROR_HOST 2>&1 | grep -vE '^#' > ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts - git remote add mirrorTarget $GIT_MIRROR_TARGET || true + - git reset HEAD --hard + - git checkout main - git status - - git log - - cat .git/config - git push -u mirrorTarget main - git push -u mirrorTarget --all - git push -u mirrorTarget --tags -- GitLab