From f842759d39a7c354b9ee7fcac82482fe14155da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Mon, 1 Jun 2020 17:42:43 +0200 Subject: [PATCH] Migrate to the newest CI system --- .gitlab-ci.yml | 46 +++++++--------------------------------------- 1 file changed, 7 insertions(+), 39 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 06852b5..14935c3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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'