diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 407001daa7bbb75674c82f9ccbf55829cb48167e..0404689ef4871b81cfb55f963e59067a7f6b6cc6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,9 @@ autoupdate: dependencies: [] needs: [] script: - - git clone "https://${GITLAB_ACCESS_USER}:${GITLAB_ACCESS_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" autoupdate-checkout + - mkdir -p ~/.ssh && chmod 0700 ~/.ssh && echo "$SSH_DEPLOY_KEY" > ~/.ssh/id_ed25519 && chmod 0600 ~/.ssh/id_ed25519 + - echo "$SSH_HOST_KEY" > ~/.ssh/known_hosts + - git clone "git@${CI_SERVER_SHELL_SSH_HOST}:${CI_PROJECT_PATH}.git" autoupdate-checkout - | set -e cd autoupdate-checkout