From 62732468637c0c0317a57fb9e47b2171f2b27402 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20OLIVIER?= <cedric3.olivier@orange.com>
Date: Mon, 13 Sep 2021 11:52:47 +0200
Subject: [PATCH] docs: add changelog
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Cédric OLIVIER <cedric3.olivier@orange.com>
---
 .gitlab-ci.yml | 21 ++++++++-------------
 .releaserc.yml |  1 +
 CHANGELOG.md   | 23 +++++++++++++++++++++++
 3 files changed, 32 insertions(+), 13 deletions(-)
 create mode 100644 CHANGELOG.md

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 23217ce..52fb4ea 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,8 +6,11 @@ include:
     ref: 'master'
     file: '/templates/validation.yml'
   - project: 'to-be-continuous/bash'
-    ref: '1.0.0'
+    ref: '2.0.0'
     file: 'templates/gitlab-ci-bash.yml'
+  - project: 'to-be-continuous/semantic-release'
+    ref: '2.0.2'
+    file: '/templates/gitlab-ci-semrel.yml'
 
 stages:
   - build
@@ -30,15 +33,7 @@ extract-script:
     paths:
       - script.sh
 
-release:
-  image: node:12
-  stage: publish
-  before_script:
-    - npm install -g semantic-release @semantic-release/gitlab @semantic-release/exec @semantic-release/git
-  script:
-    - semantic-release
-  only:
-    refs:
-      - master
-    variables:
-      - $TMPL_RELEASE_ENABLED
+semantic-release:
+  rules:
+    # on production branch(es): auto if SEMREL_AUTO_RELEASE_ENABLED
+    - if: '$TMPL_RELEASE_ENABLED == "true" && $CI_COMMIT_REF_NAME =~ $PROD_REF'
diff --git a/.releaserc.yml b/.releaserc.yml
index 9c6cd27..ef6b131 100644
--- a/.releaserc.yml
+++ b/.releaserc.yml
@@ -2,6 +2,7 @@ plugins: [
   "@semantic-release/commit-analyzer",
   "@semantic-release/release-notes-generator",
   "@semantic-release/gitlab",
+  "@semantic-release/changelog",
   [
     "@semantic-release/exec",
     {
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..b4a030d
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,23 @@
+## [1.2.1](https://gitlab.com/to-be-continuous/golang/compare/1.2.0...1.2.1) (2021-09-03)
+
+### Bug Fixes
+
+* Change boolean variable behaviour ([835c547](https://gitlab.com/to-be-continuous/golang/commit/835c5477a4d8e596b344f0806e918c1b1bc4d67c))
+
+## [1.2.0](https://gitlab.com/to-be-continuous/golang/compare/1.1.0...1.2.0) (2021-06-10)
+
+### Features
+
+* move group ([368e5a2](https://gitlab.com/to-be-continuous/golang/commit/368e5a2fbbe61bbe5bffeaa6c4bfcea101f8c47b))
+
+## [1.1.0](https://gitlab.com/Orange-OpenSource/tbc/golang/compare/1.0.0...1.1.0) (2021-05-18)
+
+### Features
+
+* add scoped variables support ([cb75be4](https://gitlab.com/Orange-OpenSource/tbc/golang/commit/cb75be4aebdda6c510f8ea2af76308078db692d9))
+
+## 1.0.0 (2021-05-06)
+
+### Features
+
+* initial release ([5518d12](https://gitlab.com/Orange-OpenSource/tbc/golang/commit/5518d126a81b2b8feb529b958868942f4b1bf900))
-- 
GitLab