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
This commit is contained in:
parent
7a3bb1bde1
commit
547b7f1f14
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue