-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
39 lines (37 loc) · 1.07 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
timeout: 3600s
tags:
- open-node-platform
substitutions:
_PROJECT_ID: ${PROJECT_ID}
_GCP_REGION: ${GCP_REGION}
_NODE_NAME: ${NODE_NAME}
_CLUSTER_NAME: ${CLUSTER_NAME}
options:
substitution_option: 'ALLOW_LOOSE'
steps:
- name: "gcr.io/cloud-builders/gcloud"
id: "build-install-image"
entrypoint: bash
args:
- -c
- |
gcloud builds submit --config=build-image/cloudbuild.yaml --substitutions=_PROJECT_ID=${_PROJECT_ID}
- name: "gcr.io/cloud-builders/gcloud"
id: "create-cluster"
dir: "create-cluster"
entrypoint: 'bash'
args:
- '-c'
- |
gcloud builds submit --substitutions=_PROJECT_ID=${_PROJECT_ID},_GCP_REGION=${_GCP_REGION},_NODE_NAME=${_NODE_NAME},_CLUSTER_NAME=${_CLUSTER_NAME}
waitFor:
- build-install-image
- name: "gcr.io/cloud-builders/gcloud"
id: "add-node"
entrypoint: 'bash'
args:
- '-c'
- |
gcloud builds submit --config=add-node/cloudbuild.yaml --substitutions=_PROJECT_ID=${_PROJECT_ID},_GCP_REGION=${_GCP_REGION},_NODE_NAME=${_NODE_NAME},_CLUSTER_NAME=${_CLUSTER_NAME}
waitFor:
- create-cluster