]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Create "other_checks_job" anchor in CI yaml
authorAndoni Duarte Pintado <andoni@isc.org>
Mon, 15 Dec 2025 13:47:08 +0000 (14:47 +0100)
committerAndoni Duarte Pintado <andoni@isc.org>
Fri, 23 Jan 2026 10:57:40 +0000 (11:57 +0100)
Use an anchor for the common parts of "other-checks" jobs in CI yaml.

.gitlab-ci.yml

index c2de43357434d57a55a0f55141efe3227f041392..af423fea9f2339c7ec8e11554be8eed2aeb81c12 100644 (file)
@@ -364,6 +364,12 @@ stages:
   tags:
     - smalljob
 
+.other-check: &other_checks_job
+  <<: *default_triggering_rules
+  <<: *base_image
+  stage: other-checks
+  needs: []
+
 .configure: &configure
     - meson setup
       --libdir=lib
@@ -1279,9 +1285,7 @@ gcc:trixie:amd64cross32:
                   -o scan-build.reports ninja -C build
 
 scan-build:
-  <<: *default_triggering_rules
-  <<: *base_image
-  stage: other-checks
+  <<: *other_checks_job
   variables:
     CC: "${CLANG}"
     CFLAGS: "${CFLAGS_COMMON}"
@@ -2045,8 +2049,7 @@ customer-git:tag:
   - grep -q 'Build successfully submitted' curl-response.txt
 
 coverity:
-  <<: *base_image
-  stage: other-checks
+  <<: *other_checks_job
   variables:
     CC: gcc
     CFLAGS: "${CFLAGS_COMMON}"
@@ -2215,9 +2218,8 @@ stress-test-child-pipeline:
 
 # Simple reproductibilty test, needs an image with meson >=1.6.0
 reproducible-build:
-  <<: *default_triggering_rules
+  <<: *other_checks_job
   <<: *alpine_3_23_amd64_image
-  stage: other-checks
   needs: []
   variables:
     CC: gcc
@@ -2242,8 +2244,7 @@ reproducible-build:
 # only in one branch, preferably "main". GitLab's clone strategy prevents us
 # from using the "bind9" repo clone; we need to clone it ourselves.
 fsck:
-  <<: *base_image
-  stage: other-checks
+  <<: *other_checks_job
   variables:
     GIT_STRATEGY: none
   script:
@@ -2255,9 +2256,7 @@ fsck:
   needs: []
 
 gcov:
-  <<: *base_image
-  <<: *default_triggering_rules
-  stage: other-checks
+  <<: *other_checks_job
   needs:
     - job: system:gcc:trixie:amd64
       artifacts: true