Skip to content

Commit 5357ef2

Browse files
committed
wip: testing child pipelines
1 parent 1948a2e commit 5357ef2

1 file changed

Lines changed: 12 additions & 8 deletions

File tree

.gitlab-ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ check:test-generate:
8686
paths:
8787
- ./tmp/test-pipelines.yml
8888
rules:
89-
# Runs on staging commits and ignores version commits
90-
- if: $CI_COMMIT_BRANCH =~ /^feature.*$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
91-
# Manually run on commits other than master and staging and ignore version commits
92-
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH !~ /^(?:master|staging)$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
89+
# Runs on feature and staging commits and ignores version commits
90+
- if: $CI_COMMIT_BRANCH =~ /^(?:feature.*|staging)$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
91+
# Runs on tag pipeline where the tag is a prerelease or release version
92+
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
93+
# Manually run on commits other than master and ignore version commits
94+
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != 'master' && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
9395
when: manual
9496

9597
check:test:
@@ -104,10 +106,12 @@ check:test:
104106
job: check:test-generate
105107
strategy: depend
106108
rules:
107-
# Runs on staging commits and ignores version commits
108-
- if: $CI_COMMIT_BRANCH =~ /^feature.*$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
109-
# Manually run on commits other than master and staging and ignore version commits
110-
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH !~ /^(?:master|staging)$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
109+
# Runs on feature and staging commits and ignores version commits
110+
- if: $CI_COMMIT_BRANCH =~ /^(?:feature.*|staging)$/ && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
111+
# Runs on tag pipeline where the tag is a prerelease or release version
112+
- if: $CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
113+
# Manually run on commits other than master and ignore version commits
114+
- if: $CI_COMMIT_BRANCH && $CI_COMMIT_BRANCH != 'master' && $CI_COMMIT_TITLE !~ /^[0-9]+\.[0-9]+\.[0-9]+(?:-.*[0-9]+)?$/
111115
when: manual
112116

113117
build:merge:

0 commit comments

Comments
 (0)