Files
rowy/cloudbuildfunctions.yaml
Shams mosowi 593d7c8e83 update FT yaml
2020-12-15 12:25:52 +08:00

48 lines
1.2 KiB
YAML

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"