diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 15e20e4e37866230604de2a8c69342d5f7460603..a8e223c01e3ff28fa4bd002b6e8d42876eef4501 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