]> 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 13:37:33 +0000 (15:37 +0200)
(cherry picked from commit bbcce1bfc1243d74ff0ec736e7d370c4cb8591f2)

.gitlab-ci.yml

index ee186c9bd1dbbbef942ad2afbfbd2221769df7d4..9cc03082e5c337157ddfc6a6cf08e558c41f2b12 100644 (file)
@@ -39,6 +39,13 @@ variables:
 default:
   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:
   - precheck
   - build