Skip to content
Snippets Groups Projects
Commit c539b86d authored by Hamza Frikel's avatar Hamza Frikel
Browse files

ci: change token

parent 07c4dc08
No related tags found
1 merge request!70Draft: Resolve "Add synchro and build template"
Pipeline #61450 passed
......@@ -32,6 +32,9 @@
- !reference [.rules-map, not-on-semantic-release-commit]
script:
- echo "Looking for new updates for $project"
- echo ${GITLAB_TOKEN}
- url=$(sed -r "s|https:\/\/|https://oauth2:${GITLAB_TOKEN}@|" <<< "${local_repo}")
- echo $url
- |
git clone "${upstream_repo}"
cd ${upstream_dir}
......@@ -43,8 +46,8 @@
git config user.name "$username"
echo "synchro TODO"
#url=$(sed -r 's|https:\/\/|https://Access_token:glpat-nzcJzx3TsQmt8fcfQYak@|' <<< "${local_repo}")
#url=$(sed -r 's|https:\/\/|https://gitlab-ci-token:${CI_JOB_TOKEN}@|' <<< "${local_repo}")
git remote add mimlibre ${local_repo/${CI_JOB_TOKEN}/${GITLAB_TOKEN}}
url=$(sed -r "s|https:\/\/|https://oauth2:${GITLAB_TOKEN}@|" <<< "${local_repo}")
git remote add mimlibre ${url}
git push --set-upstream mimlibre --all --force
git push --set-upstream mimlibre --tags --force
......
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