-
Notifications
You must be signed in to change notification settings - Fork 6
/
clouddeploy.dev.yml
52 lines (46 loc) · 1.52 KB
/
clouddeploy.dev.yml
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
steps:
- id: "install"
name: "node:19.0.0"
entrypoint: "npm"
args: ["install"]
- id: "type-check"
name: "node:19.0.0"
entrypoint: "npm"
args: ["run", "typecheck"]
- id: "test"
name: "node:19.0.0"
entrypoint: "npm"
env: ["CI=true"]
args: ["run", "test"]
# The build and deploy steps for each region must happen in direct sequence
# or the wrong build might get deployed to the wrong place
# 1. Build for region A
# 2. Deploy to region A
# 3. Build for region B
# 4. Deploy to region B
- id: "build-norway"
name: "node:19.0.0"
entrypoint: "npm"
env:
- "CI=true"
- "REACT_APP_API_URL=https://dev.data.gieffektivt.no"
- "REACT_APP_AUTH_DOMAIN=gieffektivt.eu.auth0.com"
- "REACT_APP_AUTH_CLIENT_ID=jg0jOryc8mhJ0Z0FVLfrDxx5qaznd2x8"
- "REACT_APP_AUTH_AUDIENCE=https://data.gieffektivt.no"
args: ["run", "build"]
- id: "deploy-norway"
name: "gcr.io/cloud-builders/gsutil"
args: ["-m", "cp", "-r", "build/*", "gs://effekt-admin-dev/"]
- id: "build-sweden"
name: "node:19.0.0"
entrypoint: "npm"
env:
- "CI=true"
- "REACT_APP_API_URL=https://api.dev.geeffektivt.se"
- "REACT_APP_AUTH_DOMAIN=geeffektivt.eu.auth0.com"
- "REACT_APP_AUTH_CLIENT_ID=LFS9efinrKEt1d6AbpVMjqHVIszj6TOv"
- "REACT_APP_AUTH_AUDIENCE=geeffektivt.se"
args: ["run", "build"]
- id: "deploy-sweden"
name: "gcr.io/cloud-builders/gsutil"
args: ["-m", "cp", "-r", "build/*", "gs://admin.dev.geeffektivt.se/"]