diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b46890e662a99c4dde75ad74b02ef5d9688d1d15..ba1c5e1a87831a546d42c848d34583328cc59ce7 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 9c6cd27c633ab2bc3b748ed46ec7bf4ef935725c..ef6b1316a6e772b0ce31d20f26459b4270cbd12b 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 0000000000000000000000000000000000000000..7efd1c131c7c8c96339d0002c4725510c3e5fab3 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,45 @@ +## [2.0.0](https://gitlab.com/to-be-continuous/sonar/compare/1.3.2...2.0.0) (2021-09-08) + +### Features + +* Change boolean variable behaviour ([b8f2b40](https://gitlab.com/to-be-continuous/sonar/commit/b8f2b40a430565e551a13a70a595df1b9203bede)) + +### BREAKING CHANGES + +* boolean variable now triggered on explicit 'true' value + +## [1.3.2](https://gitlab.com/to-be-continuous/sonar/compare/1.3.1...1.3.2) (2021-06-15) + +### Bug Fixes + +* prevent shallow git clone (required by Sonar Scanner) ([7a3ba87](https://gitlab.com/to-be-continuous/sonar/commit/7a3ba8764a65ae3ea85928d804a6e93b59c53059)) + +## [1.3.1](https://gitlab.com/to-be-continuous/sonar/compare/1.3.0...1.3.1) (2021-06-15) + +### Bug Fixes + +* autodetect MR when a milestone is here ([e85c45e](https://gitlab.com/to-be-continuous/sonar/commit/e85c45e9a43aeb078a7c9dcc9523508e03ba29bd)) + +## [1.3.0](https://gitlab.com/to-be-continuous/sonar/compare/1.2.0...1.3.0) (2021-06-10) + +### Features + +* move group ([d8850f2](https://gitlab.com/to-be-continuous/sonar/commit/d8850f2e6cf93c8403632dbb83cad76876c25677)) + +## [1.2.0](https://gitlab.com/Orange-OpenSource/tbc/sonar/compare/1.1.0...1.2.0) (2021-06-08) + +### Features + +* **sonar:** autodetect Merge Request from current branch ([139c6d1](https://gitlab.com/Orange-OpenSource/tbc/sonar/commit/139c6d18a2a83976e49bd0cbce10f4b40876d6d8)) + +## [1.1.0](https://gitlab.com/Orange-OpenSource/tbc/sonar/compare/1.0.0...1.1.0) (2021-05-18) + +### Features + +* add scoped variables support ([e1071c6](https://gitlab.com/Orange-OpenSource/tbc/sonar/commit/e1071c61264a13e81f11a637b627ec5a3486d06d)) + +## 1.0.0 (2021-05-06) + +### Features + +* initial release ([b18ab7c](https://gitlab.com/Orange-OpenSource/tbc/sonar/commit/b18ab7c79f40b7ea91cd26807ab8eebd08d4b332))