forked from OriginProtocol/origin-dollar
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cloudbuild.yaml
53 lines (47 loc) · 1.03 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
steps:
- id: 'Decrypt secrets required for deployment'
name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
dir: ./dapp
entrypoint: gcloud
args:
- kms
- decrypt
- --ciphertext-file=./prod.secrets.enc
- --plaintext-file=./deploy.env
- --location=global
- --keyring=origin
- --key=cloudbuild
- id: 'Set larger timeout'
name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
dir: ./dapp
entrypoint: gcloud
args:
- config
- set
- app/cloud_build_timeout
- "3200"
- id: 'Install contract dependencies'
name: 'node:16'
dir: ./contracts
entrypoint: yarn
args: ['install']
- id: 'Generate abis adn copy to dapp folder'
name: 'node:16'
dir: ./contracts
entrypoint: yarn
args: ['run', 'deploy']
- id: 'Install dapp dependencies'
name: 'node:16'
dir: ./dapp
entrypoint: yarn
args: ['install']
- id: 'Deploy the app'
name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
dir: ./dapp
entrypoint: gcloud
args:
- app
- deploy
- prod.app.yaml
- --quiet
timeout: "3200s"