Update the git url
This commit is contained in:
parent
22c0f9b2ab
commit
110ba60513
@ -55,7 +55,7 @@ deploy:
|
|||||||
|
|
||||||
# Push using GITLAB_TOKEN (Project Access Token with api scope)
|
# Push using GITLAB_TOKEN (Project Access Token with api scope)
|
||||||
if [ -n "${GITLAB_TOKEN:-}" ]; then
|
if [ -n "${GITLAB_TOKEN:-}" ]; then
|
||||||
git remote set-url origin "https://oauth2:${GITLAB_TOKEN}@gitlab.com/${CI_PROJECT_PATH}.git"
|
git remote set-url origin "https://oauth2:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git"
|
||||||
git push origin "HEAD:${CI_COMMIT_REF_NAME}" && echo "Pushed values.yaml update successfully" || echo "Failed to push, continuing deployment anyway"
|
git push origin "HEAD:${CI_COMMIT_REF_NAME}" && echo "Pushed values.yaml update successfully" || echo "Failed to push, continuing deployment anyway"
|
||||||
else
|
else
|
||||||
echo "GITLAB_TOKEN not set, skipping git push (values.yaml is updated locally for this deployment)"
|
echo "GITLAB_TOKEN not set, skipping git push (values.yaml is updated locally for this deployment)"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user