-
Notifications
You must be signed in to change notification settings - Fork 24
/
debian_worker_cloudbuild.yaml
58 lines (53 loc) · 2.11 KB
/
debian_worker_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
# Copyright 2022 Google Inc. All Rights Reserved.
#
# 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
#
# http://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.
# Execute workflow debian_worker.wf.json to build a new Debian worker.
# Tested with Debian 10 and Debian 11.
#
# To run the Cloud Build workflow, execute the following from the root
# directory:
# gcloud builds submit --config=debian_worker_cloudbuild.yaml .
timeout: 4500s
substitutions:
_BUILDER_PROJECT: 'compute-image-import-builder'
_GCS_PATH: 'gs://compute-image-import-builder'
_IMAGE_PROJECT: 'compute-image-import'
_DAISY_WORKFLOW: '/workspace/daisy_workflows/image_build/debian/debian_worker.wf.json'
_DAISY_DOCKER_TAG: 'latest'
steps:
# Build Debian 10 worker.
- id: 'build-debian-10-worker'
name: 'gcr.io/compute-image-tools/daisy:${_DAISY_DOCKER_TAG}'
args: [
'-gcs_path=${_GCS_PATH}',
'-project=${_BUILDER_PROJECT}',
'-var:commit_sha=$COMMIT_SHA',
'-var:family_tag=debian-10-worker',
'-var:image_prefix=debian-10-worker',
'-var:image_project=${_IMAGE_PROJECT}',
'-var:source_image=projects/debian-cloud/global/images/family/debian-10',
'${_DAISY_WORKFLOW}'
]
# Build Debian 11 worker.
- id: 'build-debian-11-worker'
name: 'gcr.io/compute-image-tools/daisy:${_DAISY_DOCKER_TAG}'
args: [
'-gcs_path=${_GCS_PATH}',
'-project=${_BUILDER_PROJECT}',
'-var:commit_sha=$COMMIT_SHA',
'-var:family_tag=debian-11-worker',
'-var:image_prefix=debian-11-worker',
'-var:image_project=${_IMAGE_PROJECT}',
'-var:source_image=projects/debian-cloud/global/images/family/debian-11',
'${_DAISY_WORKFLOW}'
]