-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
80 lines (73 loc) · 2.08 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
stages:
- build
- deploy
- release
include:
- services/backend/.gitlab-ci.yml
- services/frontend/.gitlab-ci.yml
deploy testnet staging:
stage: deploy
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose -f deploy/compose.testnet-staging.yml pull
- docker-compose -f deploy/compose.testnet-staging.yml -p keepscan-staging-testnet up --remove-orphans -d
only:
refs:
- master
environment:
name: testnet staging
url: https://testnet.staging.keepscan.com
clean testnet staging:
stage: deploy
script:
- docker-compose -f deploy/compose.testnet-staging.yml -p keepscan-staging-testnet down --rm
when: manual
only:
refs:
- master
deploy mainnet staging:
stage: deploy
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose -f deploy/compose.mainnet-staging.yml pull
- docker-compose -f deploy/compose.mainnet-staging.yml -p keepscan-staging-mainnet up --remove-orphans -d
only:
refs:
- master
environment:
name: mainnet staging
url: https://mainnet.staging.keepscan.com
clean mainnet staging:
stage: deploy
script:
- docker-compose -f deploy/compose.mainnet-staging.yml -p keepscan-staging-mainnet down --rm
when: manual
only:
refs:
- master
release testnet:
stage: release
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose -f deploy/compose.testnet.yml pull
- docker-compose -f deploy/compose.testnet.yml -p keepscan-testnet up --remove-orphans -d
only:
refs:
- master
when: manual
environment:
name: testnet
url: https://testnet.keepscan.com
release mainnet:
stage: release
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker-compose -f deploy/compose.mainnet.yml pull
- docker-compose -f deploy/compose.mainnet.yml -p keepscan up --remove-orphans -d
only:
refs:
- master
when: manual
environment:
name: mainnet
url: https://keepscan.com