Commit a5bd73ca authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

ci: disable semantic-release in cloned repositories

parent e32f0928
Loading
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -8,15 +8,13 @@ include:
  - project: "to-be-continuous/kicker"
    ref: "master"
    file: "/templates/validation.yml"
  - component: $CI_SERVER_FQDN/to-be-continuous/bash/gitlab-ci-bash@3.9
  - component: $CI_SERVER_FQDN/to-be-continuous/bash/gitlab-ci-bash@3
    inputs:
      shellcheck-files: "*.sh"
  - local: "templates/gitlab-ci-semrel.yml"

variables:
  GITLAB_CI_FILES: "templates/gitlab-ci-semrel.yml"

semantic-release:
  rules:
    # on production branch(es): auto if SEMREL_AUTO_RELEASE_ENABLED
    - if: '$TMPL_RELEASE_ENABLED == "true" && $CI_COMMIT_REF_NAME =~ $PROD_REF'
  # disable semrel for all synch'd repositories
  SEMREL_RELEASE_DISABLED: true
  SEMREL_AUTO_RELEASE_ENABLED: true