From 07d7d171827a01acbf544b40585c7a5abb9f0280 Mon Sep 17 00:00:00 2001 From: Songtronix Date: Thu, 14 May 2020 17:48:10 +0200 Subject: [PATCH] change(ci): take advantage of auto cancel pending pipelines --- .gitlab-ci.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 889e5b0246..733c4b152d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,19 @@ -image: registry.gitlab.com/veloren/veloren-docker-ci:latest +stages: + - optional-builds + - check-compile + - build-post + - publish variables: GIT_STRATEGY: fetch GIT_DEPTH: 3 GIT_CLEAN_FLAGS: -f -stages: - - optional-builds - - check-compile - - build-post - - publish +default: + image: registry.gitlab.com/veloren/veloren-docker-ci:latest + # https://docs.gitlab.com/ee/ci/pipelines/settings.html#auto-cancel-pending-pipelines + interruptible: true + before_script: - source $HOME/.cargo/env