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

ci: optional manual MR build and deploy

parent 95cfa899
Branches
Tags
1 merge request!945V3.3.0
......@@ -21,8 +21,14 @@ build:
DOCKER_DRIVER: overlay2
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:25
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
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker login ${CI_DEPENDENCY_PROXY_SERVER} -u ${CI_DEPENDENCY_PROXY_USER} -p ${CI_DEPENDENCY_PROXY_PASSWORD}
......@@ -146,8 +152,14 @@ deploy-10-dev:
name: dev
variables:
NAMESPACE_ENV: "d01"
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
deploy-20-rec:
stage: deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment