mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
Add redundant pipeline cancelation
This commit is contained in:
parent
d92090dc0f
commit
2edc87da36
2 changed files with 16 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ workflow:
|
|||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
|
||||
default:
|
||||
interruptible: true
|
||||
image: ${BASE_BUILD_REGISTRY_IMAGE}/debian-bullseye-slim:docker-20.10.14-buildx-0.8
|
||||
services:
|
||||
- docker:20.10.14-dind
|
||||
|
|
@ -28,5 +29,8 @@ variables:
|
|||
DOCKER_HOST: tcp://docker:2375
|
||||
BASE_BUILD_REGISTRY_IMAGE: registry.gitlab.com/gitlab-org/gitlab-build-images
|
||||
|
||||
dont-interrupt-me:
|
||||
extends: .dont-interrupt-me
|
||||
|
||||
cache-chrome-chromium:
|
||||
extends: .cache-google-chrome
|
||||
|
|
|
|||
|
|
@ -68,3 +68,15 @@
|
|||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_SERVER_HOST == "gitlab.com"'
|
||||
when: manual
|
||||
allow_failure: true
|
||||
|
||||
.dont-interrupt-me:
|
||||
stage: .pre
|
||||
interruptible: false
|
||||
script:
|
||||
- echo "This jobs makes sure this pipeline won't be interrupted! See https://docs.gitlab.com/ee/ci/yaml/#interruptible."
|
||||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
||||
allow_failure: true
|
||||
- if: $CI_MERGE_REQUEST_IID
|
||||
when: manual
|
||||
allow_failure: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue