From: Nicki Křížek Date: Mon, 27 Jan 2025 14:30:39 +0000 (+0100) Subject: Run merged-metadata job for release branches in private repo X-Git-Tag: v9.21.5~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e5a3bde7ee0123e3af5432f45447776ebea90b9;p=thirdparty%2Fbind9.git Run merged-metadata job for release branches in private repo 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. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ab95af2956..be5c0ed73c8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1827,6 +1827,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"