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