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

ci: support custom TBC group as an alternative CI/CD configuration

This change restores the working build for basic forking workflow on gitlab.com.
parent 368e092c
Loading
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
# Alternative CI/CD configuration file when using TBC in a self-managed GitLab with a custom TBC root group (different from the default "to-be-continuous")
# ℹ️ The CI/CD configuration file can be selected in your project: Settings > CI/CD > General Pipelines > CI/CD Configuration File.
# ⚠️ Requires that the TBC_NAMESPACE variable be set as a server instance variable (recommended), group variable, or project variable.
include:
  - project: "$TBC_NAMESPACE/tools/gitlab-ci"
    file: "/templates/extract.yml"
  - project: "$TBC_NAMESPACE/tools/gitlab-ci"
    file: "/templates/validation.yml"
  - project: "$TBC_NAMESPACE/kicker"
    file: "/templates/validation.yml"
  - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/bash/gitlab-ci-bash@3
    inputs:
      shellcheck-files: "*.sh"
      bats-enabled: true
      bats-tests: "test"
      bats-libraries: "bats-support@https://github.com/bats-core/bats-support/archive/v0.3.0.zip bats-assert@https://github.com/bats-core/bats-assert/archive/v2.0.0.zip"
  - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/semantic-release/gitlab-ci-semrel@4
    inputs:
      # disable semrel for all synch'd repositories
      release-disabled: true
      auto-release-enabled: true

variables:
  GITLAB_CI_FILES: "templates/gitlab-ci-cf.yml"
+7 −6
Original line number Diff line number Diff line
# Default CI/CD configuration file
# ℹ️ If you're using TBC in a self-managed GitLab with a custom TBC root group, use .gitlab-ci-namespaced.yml instead
include:
  - project: "$TBC_NAMESPACE/tools/gitlab-ci"
  - project: "to-be-continuous/tools/gitlab-ci"
    file: "/templates/extract.yml"
  - project: "$TBC_NAMESPACE/tools/gitlab-ci"
  - project: "to-be-continuous/tools/gitlab-ci"
    file: "/templates/validation.yml"
  - project: "$TBC_NAMESPACE/kicker"
  - project: "to-be-continuous/kicker"
    file: "/templates/validation.yml"
  - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/bash/gitlab-ci-bash@3
  - component: $CI_SERVER_FQDN/to-be-continuous/bash/gitlab-ci-bash@3
    inputs:
      shellcheck-files: "*.sh"
      bats-enabled: true
      bats-tests: "test"
      bats-libraries: "bats-support@https://github.com/bats-core/bats-support/archive/v0.3.0.zip bats-assert@https://github.com/bats-core/bats-assert/archive/v2.0.0.zip"
  - component: $CI_SERVER_FQDN/$TBC_NAMESPACE/semantic-release/gitlab-ci-semrel@4
  - component: $CI_SERVER_FQDN/to-be-continuous/semantic-release/gitlab-ci-semrel@4
    inputs:
      # disable semrel for all synch'd repositories
      release-disabled: true
@@ -19,4 +21,3 @@ include:

variables:
  GITLAB_CI_FILES: "templates/gitlab-ci-cf.yml"
  TBC_NAMESPACE: "to-be-continuous"