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

ci: optional manual MR build and deploy

parent d7584a1b
No related branches found
No related tags found
1 merge request!453V3.3.0
...@@ -18,8 +18,14 @@ variables: ...@@ -18,8 +18,14 @@ variables:
build: build:
stage: build stage: build
only: rules:
- dev # Always run the stage for the 'dev' branch
- if: '$CI_COMMIT_REF_NAME == "dev"'
# For Merge Requests, make the stage manual
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: manual
# Otherwise, skip the stage
- when: never
needs: [] needs: []
variables: variables:
DOCKER_TLS_CERTDIR: '' DOCKER_TLS_CERTDIR: ''
...@@ -188,8 +194,14 @@ db-copy-20-rec: ...@@ -188,8 +194,14 @@ db-copy-20-rec:
deploy-10-dev: deploy-10-dev:
stage: deploy stage: deploy
only: rules:
- dev # Always run the stage for the 'dev' branch
- if: '$CI_COMMIT_REF_NAME == "dev"'
# For Merge Requests, make the stage manual
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: manual
# Otherwise, skip the stage
- when: never
needs: ['test', 'build'] needs: ['test', 'build']
inherit: inherit:
default: [before_script] default: [before_script]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment