diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 137fb381afb68daedc80ff91318b00c249ef8a82..534e04ffbbb681cb7727c1421e9d310d49397b59 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,29 +2,18 @@ image: python:3.6 stages: - - test - release -test: - stage: test - script: - - echo 'Make your tests here !' - except: - - master - tags: - - sib - publish: stage: release before_script: + - pip install python-semantic-release sib-commit-parser - git config user.name "${GITLAB_USER_NAME}" - git config user.email "${GITLAB_USER_EMAIL}" - - git remote set-url origin "https://gitlab-ci-token:${GL_TOKEN}@git.happy-dev.fr/${CI_PROJECT_PATH}.git" - - pip install git+https://github.com/plup/python-semantic-release - - pip install sib-commit-parser + - git remote set-url origin "https://gitlab-ci-token:${GL_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git" script: - semantic-release publish only: - master tags: - - sib + - deploy