Skip to content
Snippets Groups Projects
Commit a9125378 authored by Andrii Sosiuk's avatar Andrii Sosiuk
Browse files

YT-381: Use gitbot token for custom projects

  Build process uses GITLAB_PRIVATE_TOKEN for multiple upstream repositories,
  including private SECO repos.
  However, the new token rotation mechanism does not support variables
  with multiple tokens, making this approach inconvenient.

  This changes:
   - Use GITBOT_TOKEN for SECO repositories.
   - Keep GITLAB_PRIVATE_TOKEN for other upstream repos.
parent 859b9e07
No related branches found
No related tags found
1 merge request!439YT-381: Use gitbot token for custom projects
Pipeline #237241 passed with stage
in 20 minutes and 9 seconds
......@@ -47,8 +47,14 @@ workflow:
- echo "$SSH_CONFIG" > ~/.ssh/config
.setup_git_credentials: &setup_git_credentials
# Set access to SECO repos via token
- git config
--global url.https://gitlab-ci-token:${GITBOT_TOKEN}@git.seco.com/.insteadOf
https://git.seco.com/
# Set some credentials from private upstream repos
- echo "Setup Git Credentials Cache"
- git config --global credential.helper 'cache --timeout 86400'
- git config --global credential.helper store
- git config --global credential.useHttpPath true
- git config --global --add safe.directory "*"
# Following format should be used for GITLAB_PRIVATE_TOKEN:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment