Migrate to the newest CI system

This commit is contained in:
Régis Behmo 2020-06-01 17:42:43 +02:00
parent b6f9147a34
commit f842759d39

View File

@ -1,40 +1,8 @@
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
variables:
TUTOR_PLUGIN: notes
TUTOR_IMAGES: notes
TUTOR_PYPI_PACKAGE: tutor-notes
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
include:
- project: 'community/tutor-ci'
file: 'plugin-gitlab-ci.yml'