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:
477
477
only :
478
478
- master
479
479
- deploy_to_prod :
480
+ context :
481
+ - team-container-integration-circleci
480
482
filters :
481
483
branches :
482
484
only :
Original file line number Diff line number Diff line change 4
4
PIPELINE_ID=$( curl -s --fail --show-error \
5
5
-H " Accept: application/json" \
6
6
-H " Content-Type: application/json" \
7
- -H " Circle-Token: $CIRCLI_CI_API_TOKEN " \
7
+ -H " Circle-Token: $CIRCLE_TOKEN " \
8
8
https://circleci.com/api/v2/project/github/snyk/" ${KUBERNETES_MONITOR_DEPLOYER_REPO} " /pipeline | jq -r .items[0].id)
9
9
10
10
11
11
WORKFLOW_ID=$( curl -s --fail --show-error \
12
12
-H " Accept: application/json" \
13
13
-H " Content-Type: application/json" \
14
- -H " Circle-Token: $CIRCLI_CI_API_TOKEN " \
14
+ -H " Circle-Token: $CIRCLE_TOKEN " \
15
15
https://circleci.com/api/v2/pipeline/" ${PIPELINE_ID} " /workflow | jq -r .items[0].id)
16
16
17
17
APPROVAL_REQUEST_ID=$( curl -s --fail --show-error \
18
18
-H " Accept: application/json" \
19
19
-H " Content-Type: application/json" \
20
- -H " Circle-Token: $CIRCLI_CI_API_TOKEN " \
20
+ -H " Circle-Token: $CIRCLE_TOKEN " \
21
21
https://circleci.com/api/v2/workflow/" ${WORKFLOW_ID} " /job | jq -r ' .items[] | select(.name == "Approve prod deployment") | .approval_request_id' )
22
22
23
23
APPROVAL=$( curl -s --fail --show-error \
24
24
-H " Accept: application/json" \
25
25
-H " Content-Type: application/json" \
26
- -H " Circle-Token: $CIRCLI_CI_API_TOKEN " \
26
+ -H " Circle-Token: $CIRCLE_TOKEN " \
27
27
-X POST -d " {}" \
28
28
https://circleci.com/api/v2/workflow/" ${WORKFLOW_ID} " /approve/" ${APPROVAL_REQUEST_ID} " | jq -r .message)
29
29
You can’t perform that action at this time.
0 commit comments