-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
87 lines (78 loc) · 1.18 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
81
82
83
84
85
86
87
variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- test
- deploy
- cleanup
# dev testing
dev-test:
only:
- dev
stage: test
tags:
- deployment-master
script:
- set -e
- python3 ommr4all-deploy/test.py
dev-cleanup:
only:
- dev
stage: cleanup
tags:
- deployment-master
script:
- rm -rf *
# deploy master
master-test:
only:
- master
stage: test
tags:
- deployment-master
script:
- set -e
- python3 ommr4all-deploy/test.py
master-deploy:
only:
- master
stage: deploy
tags:
- deployment-master
script:
- set -e
- python3 ommr4all-deploy/deploy.py
master-cleanup:
only:
- master
stage: cleanup
tags:
- deployment-master
script:
- rm -rf *
# deploy production
production-test:
only:
- tags
stage: test
tags:
- deployment-production
script:
- set -e
- python3 ommr4all-deploy/test.py
production-deploy:
only:
- tags
stage: deploy
tags:
- deployment-production
script:
- set -e
- python3 ommr4all-deploy/deploy.py --gpu
production-cleanup:
only:
- tags
stage: cleanup
tags:
- deployment-production
script:
- rm -rf *