From 5dc5de23960778f5e6601e760395b8ef887d2ccd Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Wed, 14 Oct 2020 21:26:35 +0300 Subject: [PATCH] citemplate: tweak merge-request rules With the MergeRequest rules template, its was impossible to manually create or trigger a pipeline for a branch/commit that was not part of a merge request. This tweaks the workflow:rules such that there will always be a pipeline for each commit (which will be set to a manual job trigger). There is the downside that we will now be triggering 2 pipelines in case of merge requests, but they will require manual action to be started. Part-of: --- gitlab/ci_template.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gitlab/ci_template.yml b/gitlab/ci_template.yml index afd1b9f1f4..65e69bd7ec 100644 --- a/gitlab/ci_template.yml +++ b/gitlab/ci_template.yml @@ -1,6 +1,3 @@ -include: - - template: 'Workflows/MergeRequest-Pipelines.gitlab-ci.yml' - stages: - 'build docker' - 'preparation' @@ -88,6 +85,11 @@ variables: --variants werror --timestamps +workflow: + rules: + - if: $CI_MERGE_REQUEST_IID + - if: $CI_COMMIT_TAG + - if: $CI_COMMIT_BRANCH # # Global CI policy #