From cb6b185639eeb88acaaebceac05332f89ae0d637 Mon Sep 17 00:00:00 2001 From: Pierre Smeyers <pierre.smeyers@gmail.com> Date: Fri, 8 Jul 2022 13:41:54 +0200 Subject: [PATCH] feat: make MR pipeline the default workflow BREAKING CHANGE: change default workflow from Branch pipeline to MR pipeline --- templates/gitlab-ci-gcloud.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/gitlab-ci-gcloud.yml b/templates/gitlab-ci-gcloud.yml index 690d372..28a3062 100644 --- a/templates/gitlab-ci-gcloud.yml +++ b/templates/gitlab-ci-gcloud.yml @@ -13,11 +13,11 @@ # program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth # Floor, Boston, MA 02110-1301, USA. # ========================================================================================= -# default workflow rules +# default workflow rules: Merge Request pipelines workflow: rules: - # exclude merge requests - - if: $CI_MERGE_REQUEST_ID + # prevent branch pipeline when an MR is open (prefer MR pipeline) + - if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS' when: never - when: always -- GitLab