Skip to content

Commit 85d74c5

Browse files
committed
Add workflow
Signed-off-by: Thomas <[email protected]>
1 parent 2c6e585 commit 85d74c5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.gitlab-ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22
default:
33
image: mcr.microsoft.com/devcontainers/python:1-3.12-bookworm
44

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+
variables:
16+
DEPLOY_ENV: "staging"
17+
- if: $CI_COMMIT_BRANCH == $CI_COMMIT_TAG
18+
variables:
19+
DEPLOY_ENV: "production"
20+
- when: never
21+
522
stages:
623
- build
724
- test

0 commit comments

Comments
 (0)