Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CI tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EOLE
Infra
CI tools
Commits
7c85ba90
Commit
7c85ba90
authored
1 year ago
by
Hamza Frikel
Browse files
Options
Downloads
Patches
Plain Diff
ci: add gitlab-ci-token
parent
06b9984d
Branches
25-add-synchro-and-build-template
No related tags found
1 merge request
!70
Draft: Resolve "Add synchro and build template"
Pipeline
#61261
passed
1 year ago
Stage: lint
Stage: build
Stage: release
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/templates.yaml
+3
-3
3 additions, 3 deletions
templates/templates.yaml
with
3 additions
and
3 deletions
templates/templates.yaml
+
3
−
3
View file @
7c85ba90
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment