tutor-notes/.gitlab-ci.yml
Régis Behmo 4bf5eac7f2 Fix broken CI
Twine >=3.0.0 requires gcc and the linux development headers, which
we don't want, so we pin twine to 2.0.0
2020-01-14 14:23:56 +01:00

41 lines
781 B
YAML

build:image:
script:
- apk add --no-cache docker
- python setup.py install
- tutor plugins enable notes
- tutor config save
- tutor images build notes
only:
refs:
- master
tags:
- private
stage: build
deploy:image:
script:
- apk add --no-cache docker
- docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- python setup.py install
- tutor plugins enable notes
- tutor config save
- tutor images push notes
only:
refs:
- master
tags:
- private
stage: deploy
deploy:pypi:
script:
- pip3 install -U setuptools twine==2.0.0
- python3 setup.py sdist
- twine upload --skip-existing dist/tutor-notes*.tar.gz
only:
refs:
- master
tags:
- private
stage: deploy