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:
build:
stage: build
only:
- dev
rules:
# 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: []
variables:
DOCKER_TLS_CERTDIR: ''
......@@ -188,8 +194,14 @@ db-copy-20-rec:
deploy-10-dev:
stage: deploy
only:
- dev
rules:
# 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']
inherit:
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