From b7a2251a4dcdec262e2423feb1f07d7cef160af3 Mon Sep 17 00:00:00 2001
From: Julian Rother <julian@cccv.de>
Date: Wed, 17 Jul 2024 23:10:38 +0200
Subject: [PATCH] Switch from deploy tokens to deploy keys due to expiry issues
 with tokens

---
 shared-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/shared-ci.yml b/shared-ci.yml
index 8a1b56d..a043604 100644
--- a/shared-ci.yml
+++ b/shared-ci.yml
@@ -22,7 +22,9 @@ image: registry.git.cccv.de/infra/packages/docker-images/utility
   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
   - cd autoupdate-checkout
   - wget "${SHARED_CI_SCRIPTS_URL_PREFIX}/filter-versions-from-github.py"
   - chmod 555 filter-versions-from-github.py
-- 
GitLab