forked from DexMBF/bullspad-launchpad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
59 lines (54 loc) · 1.33 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
stages:
- build
- cloudflare-actions
- deploy
cache:
paths:
- dist/
build:
stage: build
script:
- ". ~/.nvm/nvm.sh"
- nvm use v16.17.1
- rm -rf {node_modules,dist}
- /usr/local/bin/pnpm install
- /usr/local/bin/pnpm run build
tags: [ development ]
interruptible: true
rules:
- if: $CI_COMMIT_BRANCH == "main"
deploy:
stage: deploy
script:
- mkdir -p --parents /web/product/web3horizen/projects/bullspad-launchpad
- cp -rf dist/* /web/product/web3horizen/projects/bullspad-launchpad/
- rm -rf dist
tags: [ development ]
environment:
name: development
url: https://product-bullspad.web3horizen.com
interruptible: true
rules:
- if: $CI_COMMIT_BRANCH == "main"
needs:
- build
cloudflare-deploy:
stage: cloudflare-actions
script:
- /usr/bin/python3 /srv/scripts/cloudflare-deploy.py --zone web3horizen.com --name product-bullspad
tags: [ development ]
interruptible: true
rules:
- if: $CI_COMMIT_BRANCH == "main"
when: manual
allow_failure: true
cloudflare-erase:
stage: cloudflare-actions
script:
- /usr/bin/python3 /srv/scripts/cloudflare-deploy.py --zone web3horizen.com --name product-bullspad --erase
tags: [ development ]
interruptible: true
rules:
- if: $CI_COMMIT_BRANCH == "main"
when: manual
allow_failure: true