]> git.ipfire.org Git - thirdparty/bind9.git/commit
Limit post-push pipelines for autorebased branches
authorMichał Kępień <michal@isc.org>
Thu, 21 May 2026 09:13:30 +0000 (11:13 +0200)
committerMichał Kępień <michal@isc.org>
Thu, 21 May 2026 09:27:46 +0000 (11:27 +0200)
commit432408b72cd6ad15d0e8ff389b8c137f129bbb4e
treeb444e77678d1ad8a37ce70642bcb6ce59ec094d1
parentae089a86f1a9910a44d172b8f46a73b663c9a8ca
Limit post-push pipelines for autorebased branches

Current CI job triggering rules cause a full pipeline to be started
after every push to security-* branches.  In this context, "push" means
"branch update", which covers both "git push" invocations and merging a
merge request.  Meanwhile, running a test pipeline is only desired after
a rebase; if a branch is fast-forwarded, it means that a merge request
has been merged into it and a pipeline should have already been run for
that merge request itself.  Limit resource use by only triggering
pipelines for security-* branches when they are pushed to with a "magic"
CI variable that is only set in autorebase jobs.  Leave all the other
triggering rules (for scheduled/manual pipelines) intact.

(cherry picked from commit 5cd870053ef2df8f45e9f3fd7b203dbd1af2daad)
.gitlab-ci.yml