mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 07:50:30 -05:00
update pipeline
This commit is contained in:
parent
30931618cc
commit
f0b05cbeda
2 changed files with 19 additions and 14 deletions
23
pipeline.yml
23
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:
|
||||||
- project: 'developerdurp/yml'
|
stage: deploy
|
||||||
ref: 'main'
|
trigger:
|
||||||
file:
|
include:
|
||||||
- 'pipelines/compliance.yml'
|
- project: 'developerdurp/yml'
|
||||||
- 'pipelines/go-build.yml'
|
ref: 'main'
|
||||||
- 'pipelines/docker-build.yml'
|
file:
|
||||||
- 'pipelines/linter.yml'
|
- 'pipelines/go-build.yml'
|
||||||
- 'pipelines/security.yml'
|
rules:
|
||||||
- 'rules/rules.yml'
|
exists:
|
||||||
|
- "go.mod"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue