Debian Codegraph @

launcher/image/test/test_debug_unstable_cloudbuild.yaml

raw
1 substitutions:
2 '_IMAGE_NAME': ''
3 '_IMAGE_PROJECT': ''
4 '_CLEANUP': 'true'
5 '_VM_NAME_PREFIX': 'cs-debug-test'
6 '_ZONE': 'us-central1-a'
7 '_WORKLOAD_IMAGE': 'us-west1-docker.pkg.dev/confidential-space-images-dev/cs-integ-test-images/basic-test:latest'
8 steps:
9 - name: 'gcr.io/cloud-builders/gcloud'
10 id: CreateVM
11 entrypoint: 'bash'
12 env:
13 - 'BUILD_ID=$BUILD_ID'
14 args: ['create_vm.sh','-i', '${_IMAGE_NAME}',
15 '-p', '${_IMAGE_PROJECT}',
16 '-m', 'tee-image-reference=${_WORKLOAD_IMAGE},tee-container-log-redirect=true,tee-cmd=["newCmd"],tee-env-ALLOWED_OVERRIDE=overridden,enable-osconfig=TRUE',
17 '-n', '${_VM_NAME_PREFIX}-${BUILD_ID}',
18 '-z', '${_ZONE}',
19 ]
20 - name: 'gcr.io/cloud-builders/gcloud'
21 id: OsConfigOsPolicyEnabledTest
22 entrypoint: 'bash'
23 args: ['scripts/test_os_config_os_policy.sh', 'debug', '${_VM_NAME_PREFIX}-${BUILD_ID}', '${_ZONE}']
24 - name: 'gcr.io/cloud-builders/gcloud'
25 id: CleanUp
26 entrypoint: 'bash'
27 env:
28 - 'CLEANUP=$_CLEANUP'
29 args: ['cleanup.sh', '${_VM_NAME_PREFIX}-${BUILD_ID}', '${_ZONE}']
30 # Must come after cleanup.
31 - name: 'gcr.io/cloud-builders/gcloud'
32 id: CheckFailure
33 entrypoint: 'bash'
34 env:
35 - 'BUILD_ID=$BUILD_ID'
36 args: ['check_failure.sh']
37
38 options:
39 pool:
40 name: 'projects/confidential-space-images-dev/locations/us-west1/workerPools/cs-image-build-vpc'