-
Notifications
You must be signed in to change notification settings - Fork 2
/
cloudbuild.yaml
108 lines (99 loc) · 4.26 KB
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
substitutions:
_IMAGE_REGISTRY: "us-docker.pkg.dev/${PROJECT_ID}/catalog"
options:
logging: CLOUD_LOGGING_ONLY
# Enforce Cloud Build to generate provenance.
requestedVerifyOption: VERIFIED
dynamic_substitutions: true
steps:
- id: build
name: gcr.io/cloud-builders/docker
dir: images
env:
- "REGISTRY=${_IMAGE_REGISTRY}"
script: |
#!/usr/bin/env bash
make build
- id: test
name: gcr.io/cloud-builders/docker
dir: images
waitFor:
- build
env:
- "REGISTRY=${_IMAGE_REGISTRY}"
script: |
#!/usr/bin/env bash
curl -LO https://storage.googleapis.com/container-structure-test/latest/container-structure-test-linux-amd64 && \
chmod +x container-structure-test-linux-amd64 && \
mv container-structure-test-linux-amd64 /usr/local/bin/container-structure-test
make test
- id: scan
name: us-docker.pkg.dev/scaevola-builder-integration/release/scanvola/scanvola:latest
waitFor:
- build
args:
- "--on_demand"
- "--image=${_IMAGE_REGISTRY}/gcb-base:ubuntu24"
- "--image=${_IMAGE_REGISTRY}/gcb-internal:debian12"
- "--image=${_IMAGE_REGISTRY}/docker/dind:deprecated-public-image-ubuntu24"
- "--image=${_IMAGE_REGISTRY}/gar-upload:ubuntu24"
- "--image=${_IMAGE_REGISTRY}/git-steps:deprecated-public-image-ubuntu24"
- "--image=${_IMAGE_REGISTRY}/app-engine:ubuntu24"
- "--image=${_IMAGE_REGISTRY}/cloud-deploy:ubuntu24"
- "--image=${_IMAGE_REGISTRY}/cloud-storage:ubuntu24"
- "--image=${_IMAGE_REGISTRY}/cloud-run:ubuntu24"
- "--image=${_IMAGE_REGISTRY}/cloud-function:ubuntu24"
- "--image=${_IMAGE_REGISTRY}/gke-deploy:ubuntu24"
- "--image=${_IMAGE_REGISTRY}/builder:ubuntu24"
- "--image=${_IMAGE_REGISTRY}/go-steps:deprecated-public-image-ubuntu24"
- "--image=${_IMAGE_REGISTRY}/nodejs-steps:deprecated-public-image-ubuntu24"
- "--image=${_IMAGE_REGISTRY}/python-steps:deprecated-public-image-ubuntu24"
- "--image=${_IMAGE_REGISTRY}/maven-steps:deprecated-public-image-ubuntu24"
# Push the images.
images:
- ${_IMAGE_REGISTRY}/gcb-base:latest
- ${_IMAGE_REGISTRY}/gcb-base:ubuntu24
- ${_IMAGE_REGISTRY}/gcb-internal:latest
- ${_IMAGE_REGISTRY}/gcb-internal:debian12
- ${_IMAGE_REGISTRY}/docker/dind:deprecated-public-image-latest
- ${_IMAGE_REGISTRY}/docker/dind:deprecated-public-image-ubuntu24
- ${_IMAGE_REGISTRY}/gar-upload:latest
- ${_IMAGE_REGISTRY}/gar-upload:ubuntu24
- ${_IMAGE_REGISTRY}/git-steps:deprecated-public-image-latest
- ${_IMAGE_REGISTRY}/git-steps:deprecated-public-image-ubuntu24
- ${_IMAGE_REGISTRY}/app-engine:latest
- ${_IMAGE_REGISTRY}/app-engine:ubuntu24
- ${_IMAGE_REGISTRY}/cloud-deploy:latest
- ${_IMAGE_REGISTRY}/cloud-deploy:ubuntu24
- ${_IMAGE_REGISTRY}/cloud-storage:latest
- ${_IMAGE_REGISTRY}/cloud-storage:ubuntu24
- ${_IMAGE_REGISTRY}/cloud-run:latest
- ${_IMAGE_REGISTRY}/cloud-run:ubuntu24
- ${_IMAGE_REGISTRY}/cloud-function:latest
- ${_IMAGE_REGISTRY}/cloud-function:ubuntu24
- ${_IMAGE_REGISTRY}/gke-deploy:latest
- ${_IMAGE_REGISTRY}/gke-deploy:ubuntu24
- ${_IMAGE_REGISTRY}/builder:latest
- ${_IMAGE_REGISTRY}/builder:ubuntu24
- ${_IMAGE_REGISTRY}/go-steps:deprecated-public-image-latest
- ${_IMAGE_REGISTRY}/go-steps:deprecated-public-image-ubuntu24
- ${_IMAGE_REGISTRY}/nodejs-steps:deprecated-public-image-latest
- ${_IMAGE_REGISTRY}/nodejs-steps:deprecated-public-image-ubuntu24
- ${_IMAGE_REGISTRY}/python-steps:deprecated-public-image-latest
- ${_IMAGE_REGISTRY}/python-steps:deprecated-public-image-ubuntu24
- ${_IMAGE_REGISTRY}/maven-steps:deprecated-public-image-latest
- ${_IMAGE_REGISTRY}/maven-steps:deprecated-public-image-ubuntu24