From cf0e40671e08b31be64b2f2b7f937bc4649259af Mon Sep 17 00:00:00 2001 From: Etienne Loupias <eloupias@grandlyon.com> Date: Mon, 25 Nov 2024 12:17:18 +0100 Subject: [PATCH] ci: improve optional manual build for MR --- .gitlab-ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 259a7d8af..21a5d0a49 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,9 +21,10 @@ build: rules: # Always run the stage for the 'dev' branch - if: '$CI_COMMIT_REF_NAME == "dev"' - # For Merge Requests, make the stage manual + # For Merge Requests, make the stage manual (and optional) - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' when: manual + allow_failure: true # Otherwise, skip the stage - when: never needs: [] @@ -197,9 +198,10 @@ deploy-10-dev: rules: # Always run the stage for the 'dev' branch - if: '$CI_COMMIT_REF_NAME == "dev"' - # For Merge Requests, make the stage manual + # For Merge Requests, make the stage manual (and optional) - if: '$CI_PIPELINE_SOURCE == "merge_request_event"' when: manual + allow_failure: true # Otherwise, skip the stage - when: never needs: ['test', 'build'] -- GitLab