diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7af8c623842963070b1342f54239df48d591a2ac..bab2bec0bbb153ce9556a664eff028a32b45ed8d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,6 +21,8 @@ sync_mirror: - staging allow_failure: true script: + - mkdir ~/.ssh && echo "$GITHUB_HOST_KEY" > ~/.ssh/known_hosts + - eval $(ssh-agent -s) && ssh-add <(echo "$GITHUB_DEPLOY_KEY") - git clone --bare "$CI_BUILD_REPO" mirror.git - cd mirror.git - git update-ref -d refs/tags/production