update pipeline
This commit is contained in:
15
pipeline.yml
15
pipeline.yml
@@ -1,19 +1,18 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
- validate
|
|
||||||
- publish
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GO_VERSION: "1.22"
|
GO_VERSION: "1.22"
|
||||||
GOLANGCI_LINT_VERISON: "v1.58.0"
|
GOLANGCI_LINT_VERISON: "v1.58.0"
|
||||||
|
|
||||||
include:
|
build_go:
|
||||||
|
stage: deploy
|
||||||
|
trigger:
|
||||||
|
include:
|
||||||
- project: 'developerdurp/yml'
|
- project: 'developerdurp/yml'
|
||||||
ref: 'main'
|
ref: 'main'
|
||||||
file:
|
file:
|
||||||
- 'pipelines/compliance.yml'
|
|
||||||
- 'pipelines/go-build.yml'
|
- 'pipelines/go-build.yml'
|
||||||
- 'pipelines/docker-build.yml'
|
rules:
|
||||||
- 'pipelines/linter.yml'
|
exists:
|
||||||
- 'pipelines/security.yml'
|
- "go.mod"
|
||||||
- 'rules/rules.yml'
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- validate
|
||||||
|
- publish
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- template: Security/Secret-Detection.gitlab-ci.yml
|
- template: Security/Secret-Detection.gitlab-ci.yml
|
||||||
@@ -7,6 +9,12 @@ include:
|
|||||||
ref: 'main'
|
ref: 'main'
|
||||||
file:
|
file:
|
||||||
- 'jobs/golang.yml'
|
- 'jobs/golang.yml'
|
||||||
|
- 'pipelines/compliance.yml'
|
||||||
|
- 'pipelines/go-build.yml'
|
||||||
|
- 'pipelines/docker-build.yml'
|
||||||
|
- 'pipelines/linter.yml'
|
||||||
|
- 'pipelines/security.yml'
|
||||||
|
- 'rules/rules.yml'
|
||||||
|
|
||||||
gobuild:
|
gobuild:
|
||||||
variables:
|
variables:
|
||||||
@@ -15,6 +23,4 @@ gobuild:
|
|||||||
stage: build
|
stage: build
|
||||||
rules:
|
rules:
|
||||||
- !reference [.default_mr_rules, rules]
|
- !reference [.default_mr_rules, rules]
|
||||||
exists:
|
|
||||||
- "go.mod"
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user