diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 54471c6bad2fb29faeaa316b7e6f0611c28c2508..cf7b98004b4f31faae97e383fa3abf098f3780f0 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 @@ -31,15 +34,8 @@ 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' \ No newline at end of file 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..a8066e2ecbfb316b7b2b1a0d4f73ad2fe3ac8a58 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,29 @@ +## [1.4.0](https://gitlab.com/to-be-continuous/gcloud/compare/1.3.0...1.4.0) (2021-09-03) + +### Features + +* Change boolean variable behaviour ([469f03f](https://gitlab.com/to-be-continuous/gcloud/commit/469f03f5596b0072a322e04bd5d9fa412ce57d75)) + +## [1.3.0](https://gitlab.com/to-be-continuous/gcloud/compare/1.2.0...1.3.0) (2021-06-19) + +### Features + +* support multi-lines environment variables substitution ([88dd89a](https://gitlab.com/to-be-continuous/gcloud/commit/88dd89ad5514eb56032093edc5cb81bdfb51df80)) + +## [1.2.0](https://gitlab.com/to-be-continuous/gcloud/compare/1.1.0...1.2.0) (2021-06-10) + +### Features + +* move group ([6ae0887](https://gitlab.com/to-be-continuous/gcloud/commit/6ae088718ba0a22887b3ebe19563c1f9d243823e)) + +## [1.1.0](https://gitlab.com/Orange-OpenSource/tbc/gcloud/compare/1.0.0...1.1.0) (2021-05-18) + +### Features + +* add scoped variables support ([5a59857](https://gitlab.com/Orange-OpenSource/tbc/gcloud/commit/5a598570fd58469b2d8b4020cf1e832aabe602e6)) + +## 1.0.0 (2021-05-06) + +### Features + +* initial release ([9338f48](https://gitlab.com/Orange-OpenSource/tbc/gcloud/commit/9338f487bb12d1fc6527d9a03cff306906945d42))