forked from pancakeswap/pancake-frontend
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
58 lines (56 loc) · 1.03 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
stages:
- build
- deploy
build_develop:
stage: build
only:
- develop
image: node:12-buster
tags: &b_runner
- builder
- docker-executor
script:
- yarn global add dotenv-cli
- yarn install
- yarn build:dev
artifacts:
expire_in: 1 week
paths:
- build
deploy_develop:
stage: deploy
only:
- develop
tags:
- shell
- dev
- deploy-runner
script:
- rsync -a ./build/* /var/www/frontend/dev
build_prod:
stage: build
only:
- master
image: node:12-buster
tags: &b_runner
- builder
- docker-executor
script:
- yarn global add dotenv-cli
- yarn install
- yarn build
artifacts:
expire_in: 1 week
paths:
- build
deploy_prod:
stage: deploy
only:
- master
tags:
- shell
- prod
- deploy-runner
when: manual
script:
- rsync -a ./build/* /var/www/frontend