From 0e48469febda6e1df47f72dddcd75d53c2f94dde Mon Sep 17 00:00:00 2001 From: plup <plup@plup.io> Date: Mon, 24 Feb 2020 21:19:14 +0100 Subject: [PATCH] cicd: updated for git.startinblox.com --- .gitlab-ci.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 137fb38..534e04f 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 -- GitLab