diff --git a/pipeline.yml b/pipeline.yml index b141189..65cf2d5 100644 --- a/pipeline.yml +++ b/pipeline.yml @@ -1,19 +1,18 @@ stages: - build - - validate - - publish variables: GO_VERSION: "1.22" GOLANGCI_LINT_VERISON: "v1.58.0" -include: - - project: 'developerdurp/yml' - ref: 'main' - file: - - 'pipelines/compliance.yml' - - 'pipelines/go-build.yml' - - 'pipelines/docker-build.yml' - - 'pipelines/linter.yml' - - 'pipelines/security.yml' - - 'rules/rules.yml' +build_go: + stage: deploy + trigger: + include: + - project: 'developerdurp/yml' + ref: 'main' + file: + - 'pipelines/go-build.yml' + rules: + exists: + - "go.mod" diff --git a/pipelines/go-build.yml b/pipelines/go-build.yml index f7b58ca..d92233c 100644 --- a/pipelines/go-build.yml +++ b/pipelines/go-build.yml @@ -1,5 +1,7 @@ stages: - build + - validate + - publish include: - template: Security/Secret-Detection.gitlab-ci.yml @@ -7,6 +9,12 @@ include: ref: 'main' file: - 'jobs/golang.yml' + - 'pipelines/compliance.yml' + - 'pipelines/go-build.yml' + - 'pipelines/docker-build.yml' + - 'pipelines/linter.yml' + - 'pipelines/security.yml' + - 'rules/rules.yml' gobuild: variables: @@ -15,6 +23,4 @@ gobuild: stage: build rules: - !reference [.default_mr_rules, rules] - exists: - - "go.mod"