Commit 153d6674 authored by Eric Conde's avatar Eric Conde
Browse files

Try using Global CI/CD environment variables prefixing K8S_SECRET_

parent fb18e0e0
......@@ -2,7 +2,7 @@ approval:
stage: .pre
script:
- apt-get update && apt-get install jq curl -y
- export MR_ID=$(curl -s "${GITLAB_API_URL}/projects/${CI_PROJECT_ID}/merge_requests?private_token=${GITLAB_API_TOKEN}&state=opened" | jq -r ".[]|select(.sha == \"$CI_COMMIT_SHA\")|.iid")
- curl -X POST -H "Content-Type:application/json" --data '{"body":"Request for an approver to code review and resolve this thread to enable merging."}' ${GITLAB_API_URL}/projects/${CI_PROJECT_ID}/merge_requests/{$MR_ID}/discussions?private_token=${GITLAB_API_TOKEN}
- export MR_ID=$(curl -s "${K8S_SECRET_GITLAB_API_URL}/projects/${CI_PROJECT_ID}/merge_requests?private_token=${K8S_SECRET_GITLAB_API_TOKEN}&state=opened" | jq -r ".[]|select(.sha == \"$CI_COMMIT_SHA\")|.iid")
- curl -X POST -H "Content-Type:application/json" --data '{"body":"Request for an approver to code review and resolve this thread to enable merging."}' ${K8S_SECRET_GITLAB_API_URL}/projects/${CI_PROJECT_ID}/merge_requests/{$MR_ID}/discussions?private_token=${GITLAB_API_TOKEN}
only:
- merge_requests
\ No newline at end of file
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