mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 02:52:05 -04:00
Enable automatic backports for security fixes
Ensure the "backports" CI job is created when new changes are merged
into security-* branches. This enables using backport automation for
security fixes.
(cherry picked from commit 88b94a2019)
This commit is contained in:
parent
b6b87053eb
commit
873b1e7214
1 changed files with 1 additions and 2 deletions
|
|
@ -2419,8 +2419,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
|
||||
|
|
|
|||
Loading…
Reference in a new issue