From e5fa7d7eeae2f29ab0ae4eda5a0879c2b1488fd3 Mon Sep 17 00:00:00 2001 From: Julian Rother <julian@cccv.de> Date: Thu, 18 Jul 2024 00:18:54 +0200 Subject: [PATCH] Switch from deploy tokens to deploy keys due to expiry issues with tokens --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6bc244b..5ea752f 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 - | -- GitLab