Skip to content

Commit ec3de2f

Browse files
committed
Fix pipeline naming
Signed-off-by: Thomas <[email protected]>
1 parent 85d74c5 commit ec3de2f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.gitlab-ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,26 @@
22
default:
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+
58
workflow:
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

2227
stages:

0 commit comments

Comments
 (0)