Skip to content
Snippets Groups Projects
Verified Commit 9e3a902a authored by Julian's avatar Julian
Browse files

Switch from deploy tokens to deploy keys due to expiry issues with tokens

parent ad5bd2ee
No related branches found
No related tags found
No related merge requests found
Pipeline #31219 passed
......@@ -13,7 +13,9 @@ autoupdate:
rules:
- if: '$RUN_AUTOUPDATE == "1"'
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
......@@ -29,7 +31,9 @@ update_release_tags:
rules:
- if: '$RUN_AUTOUPDATE != "1" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_TAG == null'
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment