Loading .gitlab-ci.yml +8 −13 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -31,15 +34,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 .releaserc.yml +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ plugins: [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/gitlab", "@semantic-release/changelog", [ "@semantic-release/exec", { Loading templates/gitlab-ci-xxx.yml +3 −3 Original line number Diff line number Diff line Loading @@ -280,7 +280,7 @@ stages: fi } if [[ -z "$TEMPLATE_CHECK_UPDATE_DISABLED" ]]; then check_for_update xxx "1.0.0"; fi if [[ "$TEMPLATE_CHECK_UPDATE_DISABLED" != "true" ]]; then check_for_update xxx "1.0.0"; fi unscope_variables eval_all_secrets Loading Loading @@ -401,10 +401,10 @@ xxx-publish: - if: $CI_MERGE_REQUEST_ID when: never # on production branch(es): manual & non-blocking if $XXX_PUBLISH_ENABLED is set - if: '$XXX_PUBLISH_ENABLED && $CI_COMMIT_REF_NAME =~ $PROD_REF' - if: '$XXX_PUBLISH_ENABLED == "true" && $CI_COMMIT_REF_NAME =~ $PROD_REF' when: manual allow_failure: true # on integration branch(es): manual & non-blocking if $XXX_PUBLISH_ENABLED is set - if: '$XXX_PUBLISH_ENABLED && $CI_COMMIT_REF_NAME =~ $INTEG_REF' - if: '$XXX_PUBLISH_ENABLED == "true" && $CI_COMMIT_REF_NAME =~ $INTEG_REF' when: manual allow_failure: true Loading
.gitlab-ci.yml +8 −13 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -31,15 +34,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
.releaserc.yml +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ plugins: [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/gitlab", "@semantic-release/changelog", [ "@semantic-release/exec", { Loading
templates/gitlab-ci-xxx.yml +3 −3 Original line number Diff line number Diff line Loading @@ -280,7 +280,7 @@ stages: fi } if [[ -z "$TEMPLATE_CHECK_UPDATE_DISABLED" ]]; then check_for_update xxx "1.0.0"; fi if [[ "$TEMPLATE_CHECK_UPDATE_DISABLED" != "true" ]]; then check_for_update xxx "1.0.0"; fi unscope_variables eval_all_secrets Loading Loading @@ -401,10 +401,10 @@ xxx-publish: - if: $CI_MERGE_REQUEST_ID when: never # on production branch(es): manual & non-blocking if $XXX_PUBLISH_ENABLED is set - if: '$XXX_PUBLISH_ENABLED && $CI_COMMIT_REF_NAME =~ $PROD_REF' - if: '$XXX_PUBLISH_ENABLED == "true" && $CI_COMMIT_REF_NAME =~ $PROD_REF' when: manual allow_failure: true # on integration branch(es): manual & non-blocking if $XXX_PUBLISH_ENABLED is set - if: '$XXX_PUBLISH_ENABLED && $CI_COMMIT_REF_NAME =~ $INTEG_REF' - if: '$XXX_PUBLISH_ENABLED == "true" && $CI_COMMIT_REF_NAME =~ $INTEG_REF' when: manual allow_failure: true