From cb710ea667e3be54f10508cf8002777d1b5fd6d8 Mon Sep 17 00:00:00 2001
From: Benoit Alessandroni <benoit@startinblox.com>
Date: Tue, 16 Jun 2020 07:50:59 +0000
Subject: [PATCH] bugfix: fix gitlab.ci/yml to allow for auto deployment

---
 .gitlab-ci.yml | 32 +++++++++++---------------------
 1 file changed, 11 insertions(+), 21 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c86fdd3..66fe409 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,29 +2,19 @@
 image: python:3.6
 
 stages:
-  - test
-  - release
-
-test:
-  stage: test
-  script:
-    - echo 'Make your tests here !'
-  except:
-    - master
-  tags:
-    - sib
+    - release
 
 publish:
-  stage: release
-  before_script:
+    stage: release
+    before_script:
+    - pip install python-semantic-release~=5.0 sib-commit-parser~=0.3
     - 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
-  script:
+    - git remote set-url origin "https://gitlab-ci-token:${GL_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git"
+    - git fetch --tags
+    script:
     - semantic-release publish
-  only:
-    - do_not_publish
-  tags:
-    - sib
+    only:
+    - master
+    tags:
+    - deploy
-- 
GitLab