mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 07:50:30 -05:00
update
This commit is contained in:
parent
1cdab13068
commit
c16dfadf7b
3 changed files with 33 additions and 0 deletions
11
pipeline.yml
11
pipeline.yml
|
|
@ -6,6 +6,15 @@ variables:
|
||||||
GO_VERSION: "1.20"
|
GO_VERSION: "1.20"
|
||||||
GOLANGCI_LINT_VERISON: "v1.55.2"
|
GOLANGCI_LINT_VERISON: "v1.55.2"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
compliance:
|
compliance:
|
||||||
stage: compliance
|
stage: compliance
|
||||||
trigger:
|
trigger:
|
||||||
|
|
@ -42,3 +51,5 @@ build_go_api:
|
||||||
- 'pipelines/golang.yml'
|
- 'pipelines/golang.yml'
|
||||||
rules:
|
rules:
|
||||||
- if: '$PIPELINE =~ /goapi/'
|
- if: '$PIPELINE =~ /goapi/'
|
||||||
|
exists:
|
||||||
|
- "go.mod"
|
||||||
|
|
|
||||||
|
|
@ -59,5 +59,9 @@ publish:
|
||||||
- job: upload
|
- job: upload
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
||||||
|
exists:
|
||||||
|
- $OCTO_PROJECT_NAME
|
||||||
- if: $CI_COMMIT_BRANCH =~ 'main'
|
- if: $CI_COMMIT_BRANCH =~ 'main'
|
||||||
|
exists:
|
||||||
|
- $OCTO_PROJECT_NAME
|
||||||
- when: never
|
- when: never
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ include:
|
||||||
- project: 'developerdurp/yml'
|
- project: 'developerdurp/yml'
|
||||||
ref: 'main'
|
ref: 'main'
|
||||||
file:
|
file:
|
||||||
|
- 'jobs/octopus.yml'
|
||||||
- 'jobs/version.yml'
|
- 'jobs/version.yml'
|
||||||
- 'jobs/sonarqube.yml'
|
- 'jobs/sonarqube.yml'
|
||||||
- 'jobs/golang.yml'
|
- 'jobs/golang.yml'
|
||||||
|
|
@ -37,3 +38,20 @@ docker:
|
||||||
- if: $CI_COMMIT_REF_NAME == 'main'
|
- if: $CI_COMMIT_REF_NAME == 'main'
|
||||||
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
||||||
|
|
||||||
|
publish:
|
||||||
|
extends: .octo_release
|
||||||
|
stage: publish
|
||||||
|
needs:
|
||||||
|
- job: package
|
||||||
|
artifacts: true
|
||||||
|
- job: version
|
||||||
|
artifacts: true
|
||||||
|
- job: upload
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
||||||
|
exists:
|
||||||
|
- $OCTO_PROJECT_NAME
|
||||||
|
- if: $CI_COMMIT_BRANCH =~ 'main'
|
||||||
|
exists:
|
||||||
|
- $OCTO_PROJECT_NAME
|
||||||
|
- when: never
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue