forked from overhangio/tutor-ecommerce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
44 lines (42 loc) · 975 Bytes
/
.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
build:ecommerce-images:
script:
- apk add --no-cache docker
- python setup.py install
- tutor plugins enable discovery
- tutor plugins enable ecommerce
- tutor config save
- tutor images build ecommerce
- tutor images build ecommerce_worker
only:
refs:
- master
tags:
- private
stage: build
deploy:images:
script:
- apk add --no-cache docker
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- python setup.py install
- tutor plugins enable discovery
- tutor plugins enable ecommerce
- tutor config save
- tutor images push ecommerce
- tutor images push ecommerce_worker
only:
refs:
- master
tags:
- private
stage: deploy
deploy:pypi:
script:
- pip3 install setuptools==41.6.0 twine==2.0.0
- python3 setup.py sdist
- twine upload --skip-existing dist/tutor-ecommerce*.tar.gz
only:
refs:
- master
tags:
- private
stage: deploy