Files
rowy/cloudbuildfunctions.yaml

48 lines
1.2 KiB
YAML
Raw Normal View History

2020-03-26 17:57:45 +08:00
steps:
2020-07-02 15:32:03 +08:00
# - 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}"
2020-06-29 14:03:20 +08:00
- "${_FUNCTION_CONFIG}"
2020-06-29 13:00:43 +08:00
dir: "cloud_functions/functions"
2020-11-12 07:40:40 +08:00
- name: node:10.15.1
entrypoint: yarn
2020-03-27 10:11:33 +08:00
args:
2020-11-12 07:40:40 +08:00
- "deployFT"
- "--project"
- "${_PROJECT_ID}"
- "--token"
- "${_FIREBASE_TOKEN}"
- "--only"
- "functions:${_FUNCTIONS_GROUP}"
2020-03-26 17:57:45 +08:00
dir: "cloud_functions/functions"
2020-11-12 07:40:40 +08:00
# - name: gcr.io/cloud-builders/gcloud
# args:
# - functions
# - deploy
# - "${_FUNCTIONS_GROUP}"
# dir: "cloud_functions/functions"
2020-06-29 16:27:29 +08:00
- name: node:10.15.1
entrypoint: yarn
args:
- "updateStatus"
- "${_REQUEST_DOC_PATH}"
2020-07-02 11:55:39 +08:00
- "${_FUNCTION_CONFIG}"
2020-06-29 16:27:29 +08:00
dir: "cloud_functions/functions"
2020-04-23 14:50:42 +08:00
substitutions:
_PROJECT_ID: "project-id" # default value
_FUNCTIONS_GROUP: "exportTable" # default value
options:
machineType: "N1_HIGHCPU_8"