mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 07:50:30 -05:00
update rules
This commit is contained in:
parent
08039d982d
commit
30931618cc
5 changed files with 11 additions and 7 deletions
|
|
@ -17,4 +17,3 @@ include:
|
||||||
- 'pipelines/linter.yml'
|
- 'pipelines/linter.yml'
|
||||||
- 'pipelines/security.yml'
|
- 'pipelines/security.yml'
|
||||||
- 'rules/rules.yml'
|
- 'rules/rules.yml'
|
||||||
- 'rules/mr-rules.yml'
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ version:
|
||||||
secret_detection:
|
secret_detection:
|
||||||
stage: validate
|
stage: validate
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_MERGE_REQUEST_IID
|
- !reference [.mr_only_rules, rules]
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
|
|
||||||
sonarqube:
|
sonarqube:
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ gobuild:
|
||||||
extends: .golang-build
|
extends: .golang-build
|
||||||
stage: build
|
stage: build
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/' || $CI_MERGE_REQUEST_IID
|
- !reference [.default_mr_rules, rules]
|
||||||
exists:
|
exists:
|
||||||
- "go.mod"
|
- "go.mod"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
.default_mr_rules:
|
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/' || $CI_MERGE_REQUEST_IID
|
|
||||||
|
|
@ -4,6 +4,14 @@
|
||||||
|
|
||||||
.sonarqube_rules:
|
.sonarqube_rules:
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/' || $CI_MERGE_REQUEST_IID
|
||||||
exists:
|
exists:
|
||||||
- "sonar-project.properties"
|
- "sonar-project.properties"
|
||||||
|
|
||||||
|
.default_mr_rules:
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/' || $CI_MERGE_REQUEST_IID
|
||||||
|
|
||||||
|
.mr_only_rules:
|
||||||
|
rules:
|
||||||
|
- if: $CI_MERGE_REQUEST_IID
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue