]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci: make jobs interruptible by default
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 26 Oct 2022 16:45:21 +0000 (18:45 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 7 Nov 2022 16:54:41 +0000 (17:54 +0100)
We're usually not interested in CI on older commits,
and this default will help cancelling expensive respdiff jobs.

Also add default runner tags to make them less likely
to get underspecified.  For example, each job should choose
one option in the docker/lxc and amd64/arm64 pairs.

.gitlab-ci.yml
ci/pkgtest.yaml

index 1a3aef00ae4330e8a78ff340a8c4e3d7bf53b8c4..60dee4d4317a9aa60652089e1b6912b92d51fea9 100644 (file)
@@ -18,6 +18,12 @@ variables:
   EMAIL: 'ci@nic'
 
 image: $CI_REGISTRY/knot/knot-resolver/ci/debian-11:knot-$KNOT_VERSION
+default:
+  interruptible: true
+  tags:
+    - docker
+    - linux
+    - amd64
 
 stages:
   - build
index 9d3ad7d4aaa404e98b0f566a2d05c736d2f565f7..74f6ec8d2ecdf46a458f8172b8dd5df93c34c0dd 100644 (file)
@@ -1,3 +1,6 @@
+default:
+  interruptible: true
+
 stages:
   - pkgbuild
   - pkgtest