Skip to content

Commit 6fd90d2

Browse files
authored
chore(CI): collect just the org policy
1 parent 8c08838 commit 6fd90d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/int.cloudbuild.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ steps:
135135
waitFor:
136136
- create-all
137137
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
138-
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && export TF_VAR_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)") && kitchen_do converge vpc-sc-project-local']
138+
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && export TF_VAR_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)" --filter="title:Organization access level policy") && kitchen_do converge vpc-sc-project-local']
139139
- id: verify vpc-sc-project-local
140140
waitFor:
141141
- converge vpc-sc-project-local
@@ -145,7 +145,7 @@ steps:
145145
waitFor:
146146
- verify vpc-sc-project-local
147147
name: 'gcr.io/cloud-foundation-cicd/$_DOCKER_IMAGE_DEVELOPER_TOOLS:$_DOCKER_TAG_VERSION_DEVELOPER_TOOLS'
148-
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && export TF_VAR_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)") && kitchen_do destroy vpc-sc-project-local']
148+
args: ['/bin/bash', '-c', 'source /usr/local/bin/task_helper_functions.sh && export TF_VAR_policy_id=$(gcloud access-context-manager policies list --organization="${TF_VAR_org_id:?}" --format="value(name)" --filter="title:Organization access level policy") && kitchen_do destroy vpc-sc-project-local']
149149

150150
- id: init-quota-project-example
151151
waitFor:

0 commit comments

Comments
 (0)