]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Enable automatic backports for security fixes 11938/head
authorMichał Kępień <michal@isc.org>
Thu, 7 May 2026 15:45:35 +0000 (17:45 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 7 May 2026 15:45:35 +0000 (17:45 +0200)
Ensure the "backports" CI job is created when new changes are merged
into security-* branches.  This enables using backport automation for
security fixes.

.gitlab-ci.yml

index 6278193e6b4ad98e9d5518b4883cc6ee1928a697..797fe0402c03221eceeb9fb3236712a6c441d7eb 100644 (file)
@@ -2520,8 +2520,7 @@ pairwise:
 backports:
   <<: *post_merge
   rules:
-    # -sub branches are handled manually
-    - if: '$CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_REF_NAME =~ /^bind-9.[0-9]+$/ || $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH)'
+    - if: '$CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_REF_NAME =~ /^security-(main|bind-9\.[0-9]+)$/ || $CI_COMMIT_REF_NAME =~ /^bind-9.[0-9]+$/ || $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH)'
   script:
     # CI job token is not sufficient for push operations
     - git remote get-url origin | sed -e "s/gitlab-ci-token:$CI_JOB_TOKEN/oauth2:$BIND_TEAM_WRITE_TOKEN/" | xargs git remote set-url --push origin