-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
28 lines (28 loc) · 849 Bytes
/
cloudbuild.yaml
File metadata and controls
28 lines (28 loc) · 849 Bytes
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
steps:
- name: node
entrypoint: yarn
args: ["install"]
- name: node
entrypoint: yarn
args: ["test"]
- name: node
entrypoint: yarn
args: ["run", "create-production-env"]
# Read environment variables from build environment and then write them
# to a .env file for the production runtime... this is the best workaround
# I could find for passing environment variables into the App Engine
# Runtime environment... >_<
env:
- "NODE_ENV=production"
- "PGPORT=${_PGPORT}"
- "PGHOST=${_PGHOST}"
- "PGUSER=${_PGUSER}"
- "PGPASSWORD=${_PGPASSWORD}"
- "PGDATABASE=${_PGDATABASE}"
- "MONGO_DATABASE_URL=${_MONGO_DATABASE_URL}"
- name: node
entrypoint: yarn
args: ["build"]
- name: "gcr.io/cloud-builders/gcloud"
args: ["app", "deploy"]
timeout: "1600s"