From ec5d7418afbb825d258f372963ab26d3ea44b5ed 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:18:27 +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   | 29 +++++++++++++++++++++++++++++
 3 files changed, 38 insertions(+), 13 deletions(-)
 create mode 100644 CHANGELOG.md

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3ab0a27..aca3e41 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..ab8c66f
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,29 @@
+## [1.2.1](https://gitlab.com/to-be-continuous/gitleaks/compare/1.2.0...1.2.1) (2021-09-03)
+
+### Bug Fixes
+
+* Change boolean variable behaviour ([f0ad30e](https://gitlab.com/to-be-continuous/gitleaks/commit/f0ad30e5fd81cccaace51201d5d68a7979cd7ef3))
+
+## [1.2.0](https://gitlab.com/to-be-continuous/gitleaks/compare/1.1.1...1.2.0) (2021-06-10)
+
+### Features
+
+* move group ([554f528](https://gitlab.com/to-be-continuous/gitleaks/commit/554f52851c99aefa8338b9ef59e6476bd35c4407))
+
+## [1.1.1](https://gitlab.com/Orange-OpenSource/tbc/gitleaks/compare/1.1.0...1.1.1) (2021-06-04)
+
+### Bug Fixes
+
+* force clone full commits history in gitleaks complete analysis ([0b2c51e](https://gitlab.com/Orange-OpenSource/tbc/gitleaks/commit/0b2c51ef5d9cbb2794073939c2c18e9a457e5b66))
+
+## [1.1.0](https://gitlab.com/Orange-OpenSource/tbc/gitleaks/compare/1.0.0...1.1.0) (2021-05-18)
+
+### Features
+
+* add scoped variables support ([9b701e5](https://gitlab.com/Orange-OpenSource/tbc/gitleaks/commit/9b701e5c8c88881aaba689696810978e43abe7ea))
+
+## 1.0.0 (2021-05-06)
+
+### Features
+
+* initial release ([fe810ba](https://gitlab.com/Orange-OpenSource/tbc/gitleaks/commit/fe810ba058b4cac55d5bf4ccb342e6e5945d2045))
-- 
GitLab