Skip to content

Commit 131d96c

Browse files
committed
Add workflow rules to prevent some pipeline executions
1 parent 7cd9465 commit 131d96c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.gitlab-ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@ stages:
33
- container
44
- container:boot
55

6+
workflow:
7+
rules:
8+
# do not run pipeline if release-tools pushes
9+
- if: $CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN == "code0-release-tools"
10+
when: never
11+
# trigger a pipeline when triggered by api
12+
- if: $CI_PIPELINE_SOURCE == "api"
13+
# trigger a pipeline when triggered from upstream project
14+
- if: $CI_PIPELINE_SOURCE == "pipeline"
15+
# trigger a pipeline when triggerd manually
16+
- if: $CI_PIPELINE_SOURCE == "web"
17+
618
.default-retry:
719
retry:
820
max: 2

0 commit comments

Comments
 (0)