-
Notifications
You must be signed in to change notification settings - Fork 3
/
cloudbuildfunctions.yaml
47 lines (46 loc) · 1.16 KB
/
cloudbuildfunctions.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
steps:
# - name: "gcr.io/kaniko-project/executor:latest"
# args:
# - --destination=gcr.io/$PROJECT_ID/image
# - --cache=true
# - --cache-ttl=24h
- name: node:10.15.1
entrypoint: yarn
args: ["install"]
dir: "cloud_functions/functions"
- name: node:10.15.1
entrypoint: yarn
args:
- "generateConfig"
- "${_FUNCTIONS_GROUP}"
- "${_FUNCTION_CONFIG}"
dir: "cloud_functions/functions"
- name: node:10.15.1
entrypoint: yarn
args:
- "deployFT"
- "--project"
- "${_PROJECT_ID}"
- "--token"
- "${_FIREBASE_TOKEN}"
- "--only"
- "functions:${_FUNCTIONS_GROUP}"
dir: "cloud_functions/functions"
# - name: gcr.io/cloud-builders/gcloud
# args:
# - functions
# - deploy
# - "${_FUNCTIONS_GROUP}"
# dir: "cloud_functions/functions"
- name: node:10.15.1
entrypoint: yarn
args:
- "updateStatus"
- "${_REQUEST_DOC_PATH}"
- "${_FUNCTION_CONFIG}"
dir: "cloud_functions/functions"
substitutions:
_PROJECT_ID: "project-id" # default value
_FUNCTIONS_GROUP: "exportTable" # default value
options:
machineType: "N1_HIGHCPU_8"