Skip to content
Snippets Groups Projects
Commit cf0e4067 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

ci: improve optional manual build for MR

parent 35730b8f
Branches
Tags
1 merge request!453V3.3.0
...@@ -21,9 +21,10 @@ build: ...@@ -21,9 +21,10 @@ build:
rules: rules:
# Always run the stage for the 'dev' branch # Always run the stage for the 'dev' branch
- if: '$CI_COMMIT_REF_NAME == "dev"' - 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"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: manual when: manual
allow_failure: true
# Otherwise, skip the stage # Otherwise, skip the stage
- when: never - when: never
needs: [] needs: []
...@@ -197,9 +198,10 @@ deploy-10-dev: ...@@ -197,9 +198,10 @@ deploy-10-dev:
rules: rules:
# Always run the stage for the 'dev' branch # Always run the stage for the 'dev' branch
- if: '$CI_COMMIT_REF_NAME == "dev"' - 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"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: manual when: manual
allow_failure: true
# Otherwise, skip the stage # Otherwise, skip the stage
- when: never - when: never
needs: ['test', 'build'] needs: ['test', 'build']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment