Files
yml/rules/rules.yml
2024-05-06 04:55:40 -05:00

48 lines
1.1 KiB
YAML

.default_rules:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH =~ '/^release/'
.sonarqube_rules:
rules:
- if: $CI_MERGE_REQUEST_IID
exists:
- "sonar-project.properties"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
exists:
- "sonar-project.properties"
- if: $CI_COMMIT_BRANCH =~ '/^release/'
exists:
- "sonar-project.properties"
.default_mr_rules:
rules:
- if: $CI_MERGE_REQUEST_IID
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH =~ '/^release/'
.mr_only_rules:
rules:
- if: $CI_MERGE_REQUEST_IID
.docker_rules:
rules:
- if: $CI_MERGE_REQUEST_IID
exists:
- "Dockerfile"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
exists:
- "Dockerfile"
- if: $CI_COMMIT_BRANCH =~ '/^release/'
exists:
- "Dockerfile"
.docker_publish_rules:
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
exists:
- "Dockerfile"
- if: $CI_COMMIT_BRANCH =~ '/^release/'
exists:
- "Dockerfile"