]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Retry job in case of AWS Spot Instance interruption
authorEmanuel Petr <manu@isc.org>
Mon, 17 Jun 2024 18:06:13 +0000 (20:06 +0200)
committerNicki Křížek <nicki@isc.org>
Mon, 29 Jul 2024 12:16:50 +0000 (14:16 +0200)
.gitlab-ci.yml

index ed29d303281d067e841e8c576fa47f2622752b3c..103b04a49c999b20bf2560d0955b48425293d8f6 100644 (file)
@@ -64,6 +64,13 @@ default:
   # See: https://docs.gitlab.com/ee/ci/pipelines/settings.html#auto-cancel-redundant-pipelines
   interruptible: true
 
+  # AWS can interrupt the spot instance anytime, so let's retry the job when
+  # the interruption event happens to avoid a pipeline failure.
+  retry:
+    max: 2
+    when:
+      - runner_system_failure
+
 stages:
   - autoconf
   - precheck