]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add rule for the stable tags in CI and use for job update-stable-tag 12107/head
authorAndoni Duarte Pintado <andoni@isc.org>
Mon, 9 Mar 2026 16:30:09 +0000 (17:30 +0100)
committerAndoni Duarte (GitLab job 7479718) <andoni@isc.org>
Wed, 27 May 2026 08:25:06 +0000 (08:25 +0000)
commite4ccf36de65e272eca579426f549cfc2b93402dd
tree98e11b1b64c098c81fc17317a0d2acbb148b2b5f
parent918fbcea12efa453ae4b244902b0d615e1abe0d5
Add rule for the stable tags in CI and use for job update-stable-tag

The update-stable-tag job should only be run for the stable tag, which
is used by Read the Docs to build the docs for the "stable" version.

A new rule called rule_tag_open_source_stable is introduced, in order to
prevent the job from appearing in the pipeline for non-stable versions.
Having this rule in YAML is necessary, because if it were in the script
itself, the job would show up in the pipeline.

Besides, the new rule allows other jobs to be run only for the stable
tag in the future, without modifying their internal logic.

The CI variable STABLE_VERSION contains a regular expression in
Gitlab CI sense[1]: it uses the RE2 syntax[2] and must be enclosed by
slashes (i.e. /.../). It must be updated every time the minor version
is changed: releasing v9.22 will require changing STABLE_VERSION from
"/v9.20/" to "/v9.22/".

The variable is imported from common Gitlab CI YAML in the project
isc-projects/bind9-qa, so as to maintain it in a central place.

[1]: https://docs.gitlab.com/ci/jobs/job_rules/#compare-a-variable-to-a-regular-expression
[2]: https://github.com/google/re2/wiki/Syntax

(cherry picked from commit 38e80f542e93dc7baa2558e856a10e0c521e112c)
.gitlab-ci.yml