File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 22default :
33 image : mcr.microsoft.com/devcontainers/python:1-3.12-bookworm
44
5+ variables :
6+ PIPELINE_NAME : ' CI_COMMIT_BRANCH' # A default is not required
7+
58workflow :
6- name : ' Pipeline for branch: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME '
9+ name : ' Pipeline for branch: $PIPELINE_NAME '
710 auto_cancel :
811 on_new_commit : interruptible
912 on_job_failure : all
1013 rules :
1114 - if : $CI_PIPELINE_SOURCE == 'merge_request_event'
1215 variables :
1316 DEPLOY_ENV : " development"
17+ PIPELINE_NAME : ' $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME'
1418 - if : $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
1519 variables :
1620 DEPLOY_ENV : " staging"
1721 - if : $CI_COMMIT_BRANCH == $CI_COMMIT_TAG
1822 variables :
1923 DEPLOY_ENV : " production"
24+ PIPELINE_NAME : ' $CI_COMMIT_TAG'
2025 - when : never
2126
2227stages :
You can’t perform that action at this time.
0 commit comments