]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Run merged-metadata job for release branches in private repo
authorNicki Křížek <nicki@isc.org>
Mon, 27 Jan 2025 14:30:39 +0000 (15:30 +0100)
committerNicki Křížek <nicki@isc.org>
Tue, 28 Jan 2025 13:36:59 +0000 (13:36 +0000)
The prior regex didn't match the actual names we use for release
branches in the private repo. This caused the merged-metadata job to not
be created upon merging to a release branch, resulting in the private MR
not being properly milestoned.

Use the correct regex along with protecting the v9.*-release branches in
the gitlab UI so that they have access to the token used to perform the
required API operations.

(cherry picked from commit 2e5a3bde7ee0123e3af5432f45447776ebea90b9)

.gitlab-ci.yml

index 3f1b6e78ff4f4fa60d3a66cf9446deeff1ef5ff5..b360e4853f0745c0410cc90e0ceeaba91c4f7a1a 100644 (file)
@@ -1727,6 +1727,6 @@ backports:
 merged-metadata:
   <<: *post_merge
   rules:
-    - if: '$CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_REF_NAME =~ /^bind-9.[0-9]+(-sub)?$/ || $CI_COMMIT_REF_NAME =~ /^bind-9.[0-9]+.[0-9]+-release$/ || $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH)'
+    - if: '$CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_REF_NAME =~ /^bind-9.[0-9]+(-sub)?$/ || $CI_COMMIT_REF_NAME =~ /^v9.[0-9]+.[0-9]+-release$/ || $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH)'
   script:
     - bind9-qa/releng/after_merge.py "$CI_PROJECT_ID" "$MERGE_REQUEST_ID"