diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6bc244b6689c545ce12bb539d926c76f0f6ebcd2..5ea752f8b5a86c4e2aec7fe9d1efbf4e3a068f36 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,7 +15,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
   - git clone "https://github.com/splitbrain/dokuwiki" upstream-checkout
   - cd autoupdate-checkout
   - |