-
Notifications
You must be signed in to change notification settings - Fork 8
/
.gitlab-ci.yml
148 lines (141 loc) · 4.19 KB
/
.gitlab-ci.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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
stages:
- build
- deploy
build_dev:
image: node:latest
stage: build
only:
- develop
environment:
name: dev
variables:
APP_NAME: '"Hypha DAO"'
NETWORK_CHAIN_ID: '"1eaa0824707c8c16bd25145493bf062aecddfeb56c736f6ba6397f3195f33c9f"'
NETWORK_HOST: '"testnet.telos.caleos.io"'
NETWORK_PROTOCOL: '"https"'
NETWORK_PORT: '443'
DAO_CONTRACT: '"dao.hypha"'
ACCOUNT_API_URL: '"https://opqeierg9e.execute-api.us-east-1.amazonaws.com/dev"'
BLOCKCHAIN_EXPLORER: '"https://telos-test.bloks.io"'
PPP_ENV: '"test"'
SENTRY_DSN: '""'
DOCUMENTATION: '"https://notepad.diglife.coop/6w_69K_8QLSbzNaYcDWtHw?view "'
cache:
paths:
- node_modules/
script:
- yarn global add @vue/cli@latest
- yarn install
- mv src/statics/chain-manifests-dev.json src/statics/chain-manifests.json
- mv src/statics/app-manifest-dev.json src/statics/app-manifest.json
- yarn build
artifacts:
paths:
- dist/
expire_in: 1 hour
deploy_dev:
image: python:latest
stage: deploy
only:
- develop
environment:
name: dev
script:
- pip install awscli
- aws configure set aws_access_key_id $AWS_KEY
- aws configure set aws_secret_access_key $AWS_SECRET
- aws s3 rm s3://dao-dev.hypha.earth
- aws s3 sync ./dist/spa s3://dao-dev.hypha.earth
- aws cloudfront create-invalidation --distribution-id $AWS_DIST_ID --paths "/*"
build_prod:
image: node:latest
stage: build
only:
- master
environment:
name: prod
variables:
APP_NAME: '"Hypha DAO"'
NETWORK_CHAIN_ID: '"4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11"'
NETWORK_HOST: '"telos.caleos.io"'
NETWORK_PROTOCOL: '"https"'
NETWORK_PORT: '443'
DAO_CONTRACT: '"dao.hypha"'
ACCOUNT_API_URL: '"https://tb3nnn0qa9.execute-api.us-east-1.amazonaws.com/prod"'
BLOCKCHAIN_EXPLORER: '"https://telos.bloks.io"'
PPP_ENV: '"prod"'
SENTRY_DSN: '"https://[email protected]/1884471"'
DOCUMENTATION: '"https://notepad.diglife.coop/6w_69K_8QLSbzNaYcDWtHw?view "'
cache:
paths:
- node_modules/
script:
- yarn global add @vue/cli@latest
- yarn install
- mv src/statics/chain-manifests-prod.json src/statics/chain-manifests.json
- mv src/statics/app-manifest-prod.json src/statics/app-manifest.json
- yarn build
artifacts:
paths:
- dist/
expire_in: 1 hour
deploy_prod:
image: python:latest
stage: deploy
only:
- master
environment:
name: prod
script:
- pip install awscli
- aws configure set aws_access_key_id $AWS_KEY
- aws configure set aws_secret_access_key $AWS_SECRET
- aws s3 rm s3://dao.hypha.earth
- aws s3 sync ./dist/spa s3://dao.hypha.earth
- aws cloudfront create-invalidation --distribution-id $AWS_DIST_ID --paths "/*"
build_dho:
image: node:latest
stage: build
only:
- master
environment:
name: prod
variables:
APP_NAME: '"Hypha DHO"'
NETWORK_CHAIN_ID: '"4667b205c6838ef70ff7988f6e8257e8be0e1284a2f59699054a018f743b1d11"'
NETWORK_HOST: '"telos.caleos.io"'
NETWORK_PROTOCOL: '"https"'
NETWORK_PORT: '443'
DAO_CONTRACT: '"dao.hypha"'
ACCOUNT_API_URL: '"https://tb3nnn0qa9.execute-api.us-east-1.amazonaws.com/prod"'
BLOCKCHAIN_EXPLORER: '"https://telos.bloks.io"'
PPP_ENV: '"prod"'
SENTRY_DSN: '"https://[email protected]/1884471"'
DOCUMENTATION: '"https://notepad.diglife.coop/6w_69K_8QLSbzNaYcDWtHw?view "'
cache:
paths:
- node_modules/
script:
- yarn global add @vue/cli@latest
- yarn install
- mv src/statics/chain-manifests-dho.json src/statics/chain-manifests.json
- mv src/statics/app-manifest-dho.json src/statics/app-manifest.json
- yarn build
artifacts:
paths:
- dist/
expire_in: 1 hour
deploy_dho:
image: python:latest
stage: deploy
only:
- master
environment:
name: prod
script:
- pip install awscli
- aws configure set aws_access_key_id $AWS_KEY
- aws configure set aws_secret_access_key $AWS_SECRET
- aws s3 rm s3://dho.hypha.earth
- aws s3 sync ./dist/spa s3://dho.hypha.earth
- aws cloudfront create-invalidation --distribution-id $AWS_DIST_ID --paths "/*"