Commit 66f25a75 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 dee7de39
Loading
Loading
Loading
Loading
Loading
+22 −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"
  - 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-rpm.yml"
  LYCHEE_EXTRA_OPTS: "--exclude linux.die.net"
+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"
  - 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
@@ -16,5 +18,4 @@ include:

variables:
  GITLAB_CI_FILES: "templates/gitlab-ci-rpm.yml"
  TBC_NAMESPACE: "to-be-continuous"
  LYCHEE_EXTRA_OPTS: "--exclude linux.die.net"