-
Notifications
You must be signed in to change notification settings - Fork 5
/
cloudbuild.yaml
43 lines (40 loc) · 980 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:12-slim
id: install
entrypoint: yarn
args: ["install"]
waitFor: ["-"]
- name: node:12-slim
entrypoint: yarn
args: ["test"]
waitFor: ["install"]
- name: "gcr.io/kaniko-project/executor:latest"
args:
[
"--destination=gcr.io/$PROJECT_ID/kibana-bot:$COMMIT_SHA",
"--cache=true",
]
waitFor: ["-"]
- name: "gcr.io/cloud-builders/gcloud"
args:
[
"beta",
"run",
"deploy",
"kibana-bot",
"--image",
"gcr.io/$PROJECT_ID/kibana-bot:$COMMIT_SHA",
"--region",
"us-central1",
"--platform",
"managed",
"--allow-unauthenticated",
"--concurrency",
"80",
"--max-instances",
"1",
"--port",
"8000",
"--set-env-vars",
"NODE_ENV=production,LOG_TO_CONSOLE=true,ES_URL=http://localhost:1234/,GITHUB_WEBHOOK_SECRET=x,DIRECT_API_PASSWORD=x",
]