update
This commit is contained in:
13
pipeline.yml
13
pipeline.yml
@@ -25,3 +25,16 @@ gitlab_generic_package:
|
|||||||
- 'pipelines/gitlab_generic_packages.yml'
|
- 'pipelines/gitlab_generic_packages.yml'
|
||||||
rules:
|
rules:
|
||||||
- if: '$PIPELINE =~ /gitlab/'
|
- if: '$PIPELINE =~ /gitlab/'
|
||||||
|
|
||||||
|
build_go_api:
|
||||||
|
stage: deploy
|
||||||
|
needs:
|
||||||
|
- job: compliance
|
||||||
|
trigger:
|
||||||
|
include:
|
||||||
|
- project: 'developerdurp/yml'
|
||||||
|
ref: 'main'
|
||||||
|
file:
|
||||||
|
- 'pipelines/golang.yml'
|
||||||
|
rules:
|
||||||
|
- if: '$PIPELINE =~ /goapi/'
|
||||||
|
|||||||
@@ -3,9 +3,29 @@ stages:
|
|||||||
|
|
||||||
include:
|
include:
|
||||||
- template: Security/Secret-Detection.gitlab-ci.yml
|
- template: Security/Secret-Detection.gitlab-ci.yml
|
||||||
|
- project: 'developerdurp/yml'
|
||||||
|
ref: 'main'
|
||||||
|
file:
|
||||||
|
- 'jobs/sonarqube.yml'
|
||||||
|
- 'jobs/golang.yml'
|
||||||
|
|
||||||
secret_detection:
|
secret_detection:
|
||||||
stage: compliance
|
stage: compliance
|
||||||
rules:
|
rules:
|
||||||
- when: always
|
- when: always
|
||||||
allow_failure: false
|
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"
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ stages:
|
|||||||
- publish
|
- publish
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- template: Security/Secret-Detection.gitlab-ci.yml
|
|
||||||
- project: 'developerdurp/yml'
|
- project: 'developerdurp/yml'
|
||||||
ref: 'main'
|
ref: 'main'
|
||||||
file:
|
file:
|
||||||
@@ -13,12 +12,6 @@ include:
|
|||||||
- 'jobs/nuget.yml'
|
- 'jobs/nuget.yml'
|
||||||
- 'jobs/gitlab.yml'
|
- 'jobs/gitlab.yml'
|
||||||
|
|
||||||
secret_detection:
|
|
||||||
stage: .pre
|
|
||||||
rules:
|
|
||||||
- when: always
|
|
||||||
allow_failure: false
|
|
||||||
|
|
||||||
version:
|
version:
|
||||||
extends: .version
|
extends: .version
|
||||||
stage: .pre
|
stage: .pre
|
||||||
|
|||||||
@@ -19,16 +19,6 @@ version:
|
|||||||
- if: $CI_COMMIT_REF_NAME == 'main'
|
- if: $CI_COMMIT_REF_NAME == 'main'
|
||||||
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
- 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:
|
gobuild:
|
||||||
variables:
|
variables:
|
||||||
GOPROXY: https://nexus.durp.info/repository/go/
|
GOPROXY: https://nexus.durp.info/repository/go/
|
||||||
|
|||||||
Reference in New Issue
Block a user