File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -477,6 +477,8 @@ workflows:
477477 only :
478478 - master
479479 - deploy_to_prod :
480+ context :
481+ - team-container-integration-circleci
480482 filters :
481483 branches :
482484 only :
Original file line number Diff line number Diff line change 44PIPELINE_ID=$( curl -s --fail --show-error \
55 -H " Accept: application/json" \
66 -H " Content-Type: application/json" \
7- -H " Circle-Token: $CIRCLI_CI_API_TOKEN " \
7+ -H " Circle-Token: $CIRCLE_TOKEN " \
88 https://circleci.com/api/v2/project/github/snyk/" ${KUBERNETES_MONITOR_DEPLOYER_REPO} " /pipeline | jq -r .items[0].id)
99
1010
1111WORKFLOW_ID=$( curl -s --fail --show-error \
1212 -H " Accept: application/json" \
1313 -H " Content-Type: application/json" \
14- -H " Circle-Token: $CIRCLI_CI_API_TOKEN " \
14+ -H " Circle-Token: $CIRCLE_TOKEN " \
1515 https://circleci.com/api/v2/pipeline/" ${PIPELINE_ID} " /workflow | jq -r .items[0].id)
1616
1717APPROVAL_REQUEST_ID=$( curl -s --fail --show-error \
1818 -H " Accept: application/json" \
1919 -H " Content-Type: application/json" \
20- -H " Circle-Token: $CIRCLI_CI_API_TOKEN " \
20+ -H " Circle-Token: $CIRCLE_TOKEN " \
2121 https://circleci.com/api/v2/workflow/" ${WORKFLOW_ID} " /job | jq -r ' .items[] | select(.name == "Approve prod deployment") | .approval_request_id' )
2222
2323APPROVAL=$( curl -s --fail --show-error \
2424 -H " Accept: application/json" \
2525 -H " Content-Type: application/json" \
26- -H " Circle-Token: $CIRCLI_CI_API_TOKEN " \
26+ -H " Circle-Token: $CIRCLE_TOKEN " \
2727 -X POST -d " {}" \
2828 https://circleci.com/api/v2/workflow/" ${WORKFLOW_ID} " /approve/" ${APPROVAL_REQUEST_ID} " | jq -r .message)
2929
You can’t perform that action at this time.
0 commit comments