From a00b2a7e7b8af1f80950c27d73de21901c79d3af Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Wed, 4 Nov 2020 15:12:22 +0800 Subject: [PATCH] ci: re-enable MR push triggered pipeline --- .gitlab-ci.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 672f4e9a66..2de6833f83 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,14 +9,9 @@ stages: - deploy - post_deploy -# pipelines will not be created in such two cases: -# 1. MR push -# 2. push not on "master/release" branches, and not tagged -# This behavior could be changed after the `rules: changes` feature is implemented workflow: rules: - - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - when: never + # Disable those non-protected push triggered pipelines - if: '$CI_COMMIT_REF_NAME != "master" && $CI_COMMIT_BRANCH !~ /^release\/v/ && $CI_COMMIT_TAG !~ /^v\d+\.\d+(\.\d+)?($|-)/ && $CI_PIPELINE_SOURCE == "push"' when: never - when: always