We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6e585 commit 85d74c5Copy full SHA for 85d74c5
.gitlab-ci.yml
@@ -2,6 +2,23 @@
2
default:
3
image: mcr.microsoft.com/devcontainers/python:1-3.12-bookworm
4
5
+workflow:
6
+ name: 'Pipeline for branch: $CI_MERGE_REQUEST_SOURCE_BRANCH_NAME'
7
+ auto_cancel:
8
+ on_new_commit: interruptible
9
+ on_job_failure: all
10
+ rules:
11
+ - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
12
+ variables:
13
+ DEPLOY_ENV: "development"
14
+ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
15
16
+ DEPLOY_ENV: "staging"
17
+ - if: $CI_COMMIT_BRANCH == $CI_COMMIT_TAG
18
19
+ DEPLOY_ENV: "production"
20
+ - when: never
21
+
22
stages:
23
- build
24
- test
0 commit comments