godash/.gitlab/_rules.gitlab-ci.yml
2023-06-23 16:16:36 +02:00

17 lines
486 B
YAML

.if-release-candidate-tag: &if-release-candidate-tag
if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+-rc[0-9]+/'
.if-stable-release-tag: &if-stable-release-tag
if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]+$/'
.if-default-branch: &if-default-branch
if: $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
.rules:release:
rules:
- <<: *if-release-candidate-tag
- <<: *if-stable-release-tag
.rules:default:
rules:
- <<: *if-default-branch