Commit 198ab95d authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

ci: multiple changes (see details)

- migrate to component include
- templates upgrade
- disable semantic-release in cloned repositories
parent 474fa654
Loading
Loading
Loading
Loading
+15 −14
Original line number Diff line number Diff line
include:
  # $TBC_NAMESPACE is a group variable; can be globally overridden
  # Docker template
  - project: "$TBC_NAMESPACE/docker"
    ref: "6.1"
    file: "templates/gitlab-ci-docker.yml"
  - component: "$CI_SERVER_FQDN/$TBC_NAMESPACE/docker/gitlab-ci-docker@7"
    inputs:
      healthcheck-disabled: true
      build-args: "--cache-ttl=6h"
      prod-publish-strategy: "auto"
      release-extra-tags: "latest \\g<major>.\\g<minor>\\g<build> \\g<major>\\g<build>"
  # Python template
  - project: "$TBC_NAMESPACE/python"
    ref: "7.9"
    file: "/templates/gitlab-ci-python.yml"
  - component: "$CI_SERVER_FQDN/$TBC_NAMESPACE/python/gitlab-ci-python@8"
    inputs:
      image: "docker.io/library/python:3.13-slim"
      publish-enabled: true
  # semantic-release template
  - project: "$TBC_NAMESPACE/semantic-release"
    ref: "3.13"
    file: "templates/gitlab-ci-semrel.yml"
  - 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:
  PYTHON_IMAGE: "docker.io/library/python:3.13-slim"
  VALID_GCP_OIDC_PROVIDER: $GCP_OIDC_PROVIDER
  VALID_GCP_OIDC_ACCOUNT: $GCP_OIDC_ACCOUNT
  DOCKER_BUILD_ARGS: "--cache-ttl=6h"
  DOCKER_PROD_PUBLISH_STRATEGY: "auto"
  DOCKER_RELEASE_EXTRA_TAGS: "latest \\g<major>.\\g<minor>\\g<build> \\g<major>\\g<build>"
  SEMREL_AUTO_RELEASE_ENABLED: "true"
  PROXYPY_IMAGE: "docker.io/abhinavsingh/proxy.py:v2.4.3"

.test-scripts: &test-scripts |