-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
28 lines (26 loc) · 1.37 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
stages:
- production
- develop
production:
stage: production
image: node:11.0.0
script:
- apt-get update && apt-get install -y python-dev build-essential
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install awscli
- npm install && CI=false REACT_APP_BITCOIN_NETWORK='BTC_MAINNET' REACT_APP_BTC_NETWORK_SEND='main' REACT_APP_ETH_NETWORK='ETH' REACT_APP_ETH_NETWORK_SEND='homestead' npm run build && aws s3 sync build/ s3://app.walletcs.com/ --delete --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
- CI=false REACT_APP_BITCOIN_NETWORK='BTC_TESTNET' REACT_APP_BTC_NETWORK_SEND='test3' REACT_APP_ETH_NETWORK='ETH' REACT_APP_ETH_NETWORK_SEND='rinkeby' npm run build && aws s3 sync build/ s3://testnet.walletcs.com/ --delete --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
only:
- master
develop:
stage: develop
image: node:11.0.0
script:
- apt-get update && apt-get install -y python-dev build-essential
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py
- pip install awscli
- npm install && CI=false REACT_APP_BITCOIN_NETWORK='BTC_TESTNET' REACT_APP_ETH_NETWORK='ETH' REACT_APP_ETH_NETWORK_SEND='rinkeby' npm run build && aws s3 sync build/ s3://stg.walletcs.com/ --delete --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
only:
- develop