chg: ci: Add rule for stable tags in CI and use it in the update-stable-tag job

Add a rule to match open source stable tags in CI and apply it to the
update-stable-tag job.

Merge branch 'andoni/show-update-stable-tag-job-in-stable-versions' into 'main'

See merge request isc-projects/bind9!11646
This commit is contained in:
Andoni Duarte 2026-05-27 08:24:38 +00:00
commit e230886e61

View file

@ -104,6 +104,10 @@ workflow:
auto_cancel:
on_new_commit: interruptible
include:
- project: 'isc-projects/bind9-qa'
file: '/.gitlab-ci-common.yml'
stages:
- quick-checks
- other-checks
@ -316,6 +320,9 @@ stages:
.rule_tag_open_source: &rule_tag_open_source
- if: '$CI_PROJECT_NAMESPACE == "isc-private" && $CI_COMMIT_TAG != null && $CI_COMMIT_TAG !~ /-S/'
.rule_tag_open_source_stable: &rule_tag_open_source_stable
- if: '$CI_PROJECT_NAMESPACE == "isc-private" && $CI_COMMIT_TAG != null && $CI_COMMIT_TAG =~ $STABLE_VERSION_REGEX'
.rule_tag_open_source_maintenance: &rule_tag_open_source_maintenance
- if: '$CI_PROJECT_NAMESPACE == "isc-private" && $CI_COMMIT_TAG != null && $CI_COMMIT_TAG !~ /-S/ && $RELEASE_TYPE != "security"'
@ -2357,7 +2364,7 @@ update-stable-tag:
- >
"$CI_PROJECT_DIR"/bind9-qa/releng/update_stable_tag.py --tag "$CI_COMMIT_TAG"
rules:
- *rule_tag_open_source
- *rule_tag_open_source_stable
artifacts:
paths:
- bind9/