-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.gitlab-ci.yml
78 lines (70 loc) · 1.2 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
image: node
variables:
CENTOS_IP: '123456789'
stages:
- echo
- build
- deploy
- manually
- success
echo-stage-job-variable:
stage: echo
image: node
tags:
- 7-react-admin-ts-runner
script:
- echo ${CENTOS_IP}
allow_failure: true
parallel: 7
echo-stage-job-start:
stage: echo
image: node
tags:
- 7-react-admin-ts-runner2
script:
- echo "CI start"
build-stage-job:
stage: build
image: node
only:
- master
tags:
- 7-react-admin-ts-runner
script:
- rm -rf 7-react-admin-ts
- git clone https://gitlab.com/woow_wu7/7-react-admin-ts.git
- cd 7-react-admin-ts/
- ls
- npm install
- npm run build
allow_failure: true
retry: 2
# artifacts:
# expire_in: 1 week
# paths:
# - $DIST_DIR
deploy-stage-job:
stage: deploy
image: node
only:
- master
tags:
- 7-react-admin-ts-runner
script:
- echo "deploy successed"
manually-stage-job:
stage: manually
image: node
tags:
- 7-react-admin-ts-runner
script:
- echo "manually success"
when: manual
success-stage-job:
stage: success
image: node
tags:
- 7-react-admin-ts-runner
script:
- echo "all success"
when: on_success