forked from googleinterns/scan-and-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yaml
43 lines (42 loc) · 945 Bytes
/
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
steps:
- name: node:10
entrypoint: yarn
args:
- install
id: "client-install"
dir: "client/"
- name: node:10
entrypoint: yarn
args:
- create-env
id: "client-env"
dir: "client/"
env:
- "REACT_APP_GOOGLE_MAPS_API_KEY=${_GOOGLE_MAPS_API_KEY}"
- "REACT_APP_MICROAPPS_CLIENT_ID=${_MICROAPPS_CLIENT_ID}"
waitFor: ["client-install"]
- name: node:10
entrypoint: yarn
args:
- build
id: "client-build"
dir: "client/"
waitFor: ["client-env"]
- name: "gcr.io/cloud-builders/gcloud"
args: ["app", "deploy"]
dir: "client/"
waitFor: ["client-build"]
timeout: 300s
- name: node:10
entrypoint: yarn
args:
- install
id: "server-build"
dir: "server/"
- name: "gcr.io/cloud-builders/gcloud"
args: ["app", "deploy"]
dir: "server/"
waitFor: ["server-build"]
timeout: 300s
options:
machineType: "N1_HIGHCPU_8"