diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 18d6bd455b8bfd4cf932fccb14d208b81d708fc5..202dee7a44a5278b46d53f09c08e4796f43254ae 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 @@ -33,15 +36,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' + diff --git a/.releaserc.yml b/.releaserc.yml index 9c6cd27c633ab2bc3b748ed46ec7bf4ef935725c..a70b81f824066daf221c73507a968d8871a8163e 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..7fffae1012903b8e85a83d4168756afac170b419 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,29 @@ +## [1.2.2](https://gitlab.com/to-be-continuous/openshift/compare/1.2.1...1.2.2) (2021-09-08) + +### Bug Fixes + +* change variable behaviour ([2228f01](https://gitlab.com/to-be-continuous/openshift/commit/2228f01c3c2b196b476a9ba9ba7a87746aee3533)) + +## [1.2.1](https://gitlab.com/to-be-continuous/openshift/compare/1.2.0...1.2.1) (2021-07-08) + +### Bug Fixes + +* conflict between vault and scoped vars ([46f2b7d](https://gitlab.com/to-be-continuous/openshift/commit/46f2b7de6b2749faa31491239aa72b73b6ead079)) + +## [1.2.0](https://gitlab.com/to-be-continuous/openshift/compare/1.1.0...1.2.0) (2021-06-10) + +### Features + +* move group ([4e63782](https://gitlab.com/to-be-continuous/openshift/commit/4e6378295faaa8b7a45e6f43083a60b209c3a17f)) + +## [1.1.0](https://gitlab.com/Orange-OpenSource/tbc/openshift/compare/1.0.0...1.1.0) (2021-05-18) + +### Features + +* add scoped variables support ([c6ce696](https://gitlab.com/Orange-OpenSource/tbc/openshift/commit/c6ce696983831e340a3c0f16dbc78479c3e02c91)) + +## 1.0.0 (2021-05-06) + +### Features + +* initial release ([95a6b01](https://gitlab.com/Orange-OpenSource/tbc/openshift/commit/95a6b01b01d4161b5a09d9da32bf34039d77feb3))