forked from overhangio/tutor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
71 lines (65 loc) · 1.15 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
stages:
- build
- deploy:images
- deploy:pypi
- deploy:docs
build:images:
script:
- apk add --no-cache docker make
- python setup.py install
- make ci-build-images
tags:
- private
stage: build
build:docs:
script:
- apk add --no-cache make
- pip install -r requirements/docs.txt
- cd docs && make
artifacts:
paths:
- docs/_build/html
stage: build
build:pypi:
script:
- apk add --no-cache make
- make ci-install
- make package
- make package-plugins
artifacts:
paths:
- dist/
stage: build
deploy:images:
script:
- apk add --no-cache docker make
- python setup.py install
- make ci-push-images
only:
- tags
tags:
- private
stage: deploy:images
deploy:pypi:
script:
- apk add --no-cache make
- make ci-install
- make ci-pypi
dependencies:
- build:pypi
only:
- tags
tags:
- private
stage: deploy:pypi
deploy:docs:
dependencies:
- build:docs
script:
- rm -rf /var/www/docs.tutor.overhang.io
- mv docs/_build/html/ /var/www/docs.tutor.overhang.io
only:
- tags
tags:
- private
stage: deploy:docs