Skip to content
Snippets Groups Projects
Commit 565f35fc authored by Eric Conde's avatar Eric Conde
Browse files

remove K8S_SECRET_ and apply to group level instead

parent 153d6674
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ approval: ...@@ -2,7 +2,7 @@ approval:
stage: .pre stage: .pre
script: script:
- apt-get update && apt-get install jq curl -y - apt-get update && apt-get install jq curl -y
- 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") - 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."}' ${K8S_SECRET_GITLAB_API_URL}/projects/${CI_PROJECT_ID}/merge_requests/{$MR_ID}/discussions?private_token=${GITLAB_API_TOKEN} - 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}
only: only:
- merge_requests - merge_requests
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment