This commit is contained in:
2023-11-25 05:49:12 -06:00
parent 85a837e652
commit 9e448a716d
4 changed files with 33 additions and 17 deletions

View File

@@ -3,9 +3,29 @@ stages:
include:
- template: Security/Secret-Detection.gitlab-ci.yml
- project: 'developerdurp/yml'
ref: 'main'
file:
- 'jobs/sonarqube.yml'
- 'jobs/golang.yml'
secret_detection:
stage: compliance
rules:
- when: always
allow_failure: false
sonarqube:
extends: .sonarcloud-check
stage: compliance
rules:
- if: $CI_COMMIT_REF_NAME == 'main' || $CI_PIPELINE_SOURCE == 'merge_request_event'
exists:
- "go.mod"
golang-lint:
extends: .golang-lint
stage: compliance
rules:
- exists:
- "go.mod"

View File

@@ -4,7 +4,6 @@ stages:
- publish
include:
- template: Security/Secret-Detection.gitlab-ci.yml
- project: 'developerdurp/yml'
ref: 'main'
file:
@@ -13,12 +12,6 @@ include:
- 'jobs/nuget.yml'
- 'jobs/gitlab.yml'
secret_detection:
stage: .pre
rules:
- when: always
allow_failure: false
version:
extends: .version
stage: .pre

View File

@@ -19,16 +19,6 @@ version:
- if: $CI_COMMIT_REF_NAME == 'main'
- if: $CI_COMMIT_BRANCH =~ '/^release/'
sonarqube:
extends: .sonarcloud-check
stage: .pre
rules:
- if: $CI_COMMIT_REF_NAME == 'main' || $CI_PIPELINE_SOURCE == 'merge_request_event'
golang-lint:
extends: .golang-lint
stage: .pre
gobuild:
variables:
GOPROXY: https://nexus.durp.info/repository/go/