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

ci: add gitlab-ci-token

parent 06b9984d
No related tags found
1 merge request!70Draft: Resolve "Add synchro and build template"
Pipeline #61261 passed
......@@ -42,7 +42,8 @@
git config user.email "$email"
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://Access_token:glpat-nzcJzx3TsQmt8fcfQYak@|' <<< "${local_repo}")
url=$(sed -r 's|https:\/\/|https://gitlab-ci-token:${CI_JOB_TOKEN}@|' <<< "${local_repo}")
git remote add mimlibre $url
git push --set-upstream mimlibre --all --force
git push --set-upstream mimlibre --tags --force
......@@ -142,8 +143,7 @@
- NEW_TAG=${TAG}
- echo -e "\e[0Ksection_start:$(date +%s):git-tag-create-new-tag[collapsed=true]\r\e[0KCreate new git tag '${NEW_TAG}' pointing to '${CI_COMMIT_SHORT_SHA}'"
- |
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 clone $url
cd "${local_dir}"
git checkout $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
......
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