diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fd4d853b3a02015f6a7ece1820cd43a4ea642a92..0dbce3d85a31b53babc5c665410647a35d46439b 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' \ 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..4d4d6971c006db4e269af2ec278a40be0b525d30 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,45 @@ +## [2.0.0](https://gitlab.com/to-be-continuous/docker/compare/1.2.3...2.0.0) (2021-09-02) + +### Features + +* Change boolean variable behaviour ([f74d9ef](https://gitlab.com/to-be-continuous/docker/commit/f74d9ef2de5b4dc204b519e14c47862ea2b73b33)) + +### BREAKING CHANGES + +* boolean variable now triggered on explicit 'true' value + +## [1.2.3](https://gitlab.com/to-be-continuous/docker/compare/1.2.2...1.2.3) (2021-07-21) + +### Bug Fixes + +* variable name ([1aed76f](https://gitlab.com/to-be-continuous/docker/commit/1aed76f287ff27e35233941e35cbac1e8ea9d2ff)) + +## [1.2.2](https://gitlab.com/to-be-continuous/docker/compare/1.2.1...1.2.2) (2021-07-05) + +### Bug Fixes + +* update skopeo credentials ([559961f](https://gitlab.com/to-be-continuous/docker/commit/559961f9f3c30e241a049ee4ea94e9050be49592)) + +## [1.2.1](https://gitlab.com/to-be-continuous/docker/compare/1.2.0...1.2.1) (2021-06-25) + +### Bug Fixes + +* permission on reports directory ([2d2f360](https://gitlab.com/to-be-continuous/docker/commit/2d2f360420b13bbdb71c11910ac8214b74a15901)) + +## [1.2.0](https://gitlab.com/to-be-continuous/docker/compare/1.1.0...1.2.0) (2021-06-10) + +### Features + +* move group ([405fdcc](https://gitlab.com/to-be-continuous/docker/commit/405fdcc65ef1e95cb5997c610266c1422a06802e)) + +## [1.1.0](https://gitlab.com/Orange-OpenSource/tbc/docker/compare/1.0.0...1.1.0) (2021-05-18) + +### Features + +* add scoped variables support ([fc9a1ad](https://gitlab.com/Orange-OpenSource/tbc/docker/commit/fc9a1adc498209ea9fa7c6eb64831f6e1abe857f)) + +## 1.0.0 (2021-05-06) + +### Features + +* initial release ([0b00fba](https://gitlab.com/Orange-OpenSource/tbc/docker/commit/0b00fba9a515d4ea10c35cf38abc01c217f0979a))