Commit 13a6b7ed authored by Amit Rathi's avatar Amit Rathi

Use oauth2 in .git-credentials

parent 5d2e0323
...@@ -46,7 +46,7 @@ singleuser: ...@@ -46,7 +46,7 @@ singleuser:
- "-c" - "-c"
- > - >
git clone https://gitlab.com/gitlab-org/nurtch-demo.git DevOps-Runbook-Demo || true; git clone https://gitlab.com/gitlab-org/nurtch-demo.git DevOps-Runbook-Demo || true;
echo "https://${GITLAB_USER_LOGIN}:${GITLAB_ACCESS_TOKEN}@${GITLAB_HOST}" > ~/.git-credentials; echo "https://oauth2:${GITLAB_ACCESS_TOKEN}@${GITLAB_HOST}" > ~/.git-credentials;
git config --global credential.helper store; git config --global credential.helper store;
git config --global user.email "${GITLAB_USER_EMAIL}"; git config --global user.email "${GITLAB_USER_EMAIL}";
git config --global user.name "${GITLAB_USER_NAME}"; git config --global user.name "${GITLAB_USER_NAME}";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment