From 547b7f1f1496a842f181f298d82a78625866742f Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 3 Jan 2026 15:57:03 -0600 Subject: [PATCH] Auto-cancel redundant builds on new commits - Add workflow auto_cancel to cancel old pipelines - Mark build job as interruptible - Deploy jobs remain non-interruptible for safety --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 890c97d8..94349e8a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,8 +6,13 @@ variables: DOCKER_BUILDKIT: 1 CI_BUILDX_ARCHS: "linux/amd64" +workflow: + auto_cancel: + on_new_commit: interruptible + build: stage: build + interruptible: true image: docker:24 services: - docker:24-dind