-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yaml
90 lines (88 loc) · 2.28 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
steps:
- name: "node:16-bullseye-slim"
args:
- "npm"
- "ci"
id: "npm ci"
- name: "node:16-bullseye-slim"
args:
- "npm"
- "run"
- "build-functions"
id: "npm run build-functions"
waitFor:
- "npm ci"
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk:slim"
args:
- "gcloud"
- "beta"
- "functions"
- "deploy"
- "translate-text"
- "--gen2"
- "--region=us-central1"
- "--runtime=nodejs16"
- "--service-account=cloudfunctions@chattranslatorbot.iam.gserviceaccount.com"
- "--set-env-vars=PROJECT_ID=$PROJECT_ID"
- "--trigger-http"
waitFor:
- "npm run build-functions"
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk:slim"
args:
- "gcloud"
- "beta"
- "functions"
- "deploy"
- "send-text-from-bot-to-chat"
- "--gen2"
- "--region=us-central1"
- "--runtime=nodejs16"
- "--service-account=cloudfunctions@chattranslatorbot.iam.gserviceaccount.com"
- "--set-env-vars=PROJECT_ID=$PROJECT_ID"
- "--trigger-http"
waitFor:
- "npm run build-functions"
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk:slim"
args:
- "gcloud"
- "beta"
- "functions"
- "deploy"
- "set-twitch-login-to-user"
- "--gen2"
- "--region=us-central1"
- "--runtime=nodejs16"
- "--service-account=cloudfunctions@chattranslatorbot.iam.gserviceaccount.com"
- "--set-env-vars=PROJECT_ID=$PROJECT_ID"
- "--trigger-http"
waitFor:
- "npm run build-functions"
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk:slim"
args:
- "gcloud"
- "beta"
- "functions"
- "deploy"
- "authenticate-with-token"
- "--gen2"
- "--region=us-central1"
- "--runtime=nodejs16"
- "--service-account=cloudfunctions@chattranslatorbot.iam.gserviceaccount.com"
- "--set-env-vars=PROJECT_ID=$PROJECT_ID"
- "--trigger-http"
waitFor:
- "npm run build-functions"
- name: "node:16-bullseye-slim"
args:
- "npm"
- "run"
- "build"
waitFor:
- "npm ci"
id: "npm run build"
- name: "gcr.io/$PROJECT_ID/firebase"
args:
- "deploy"
- "--only=hosting"
waitFor:
- "npm run build"