This commit is contained in:
2023-11-25 08:19:34 -06:00
parent 1cdab13068
commit c16dfadf7b
3 changed files with 33 additions and 0 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -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