diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9d47bcc..9be2227 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,7 +55,7 @@ deploy: # Push using GITLAB_TOKEN (Project Access Token with api scope) 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" else echo "GITLAB_TOKEN not set, skipping git push (values.yaml is updated locally for this deployment)"