mirror of
https://gitlab.durp.info/durfy/ci-includes/yml.git
synced 2026-05-07 16:00:31 -05:00
update
This commit is contained in:
parent
87d1efe1a2
commit
2fa5972c9d
1 changed files with 32 additions and 7 deletions
|
|
@ -14,18 +14,44 @@ include:
|
||||||
- 'jobs/golang.yml'
|
- 'jobs/golang.yml'
|
||||||
- 'jobs/docker.yml'
|
- 'jobs/docker.yml'
|
||||||
|
|
||||||
|
secret_detection:
|
||||||
|
stage: compliance
|
||||||
|
rules:
|
||||||
|
- if: $CI_MERGE_REQUEST_IID
|
||||||
|
allow_failure: false
|
||||||
|
|
||||||
|
sonarqube:
|
||||||
|
extends: .sonarcloud-check
|
||||||
|
stage: compliance
|
||||||
|
allow_failure: true
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/' || $CI_MERGE_REQUEST_IID
|
||||||
|
exists:
|
||||||
|
- "sonar-project.properties"
|
||||||
|
|
||||||
|
golang-lint:
|
||||||
|
extends: .golang-lint
|
||||||
|
stage: compliance
|
||||||
|
rules:
|
||||||
|
- if: $CI_MERGE_REQUEST_IID
|
||||||
|
exists:
|
||||||
|
- "go.mod"
|
||||||
|
|
||||||
version:
|
version:
|
||||||
extends: .version
|
extends: .version
|
||||||
stage: .pre
|
stage: .pre
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_REF_NAME == 'main'
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
|
||||||
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
|
||||||
|
|
||||||
gobuild:
|
gobuild:
|
||||||
variables:
|
variables:
|
||||||
GOPROXY: https://nexus.durp.info/repository/go/
|
GOPROXY: https://nexus.durp.info/repository/go/
|
||||||
extends: .golang-build
|
extends: .golang-build
|
||||||
stage: build
|
stage: build
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
|
||||||
|
exists:
|
||||||
|
- "go.mod"
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
extends: .docker_build
|
extends: .docker_build
|
||||||
|
|
@ -37,7 +63,9 @@ docker-build:
|
||||||
optional: true
|
optional: true
|
||||||
artifacts: true
|
artifacts: true
|
||||||
rules:
|
rules:
|
||||||
- exists:
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
|
||||||
|
exists:
|
||||||
- "Dockerfile"
|
- "Dockerfile"
|
||||||
|
|
||||||
docker-push:
|
docker-push:
|
||||||
|
|
@ -49,9 +77,6 @@ docker-push:
|
||||||
- job: version
|
- job: version
|
||||||
artifacts: true
|
artifacts: true
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_REF_NAME == 'main'
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH =~ '/^release/'
|
||||||
exists:
|
|
||||||
- "Dockerfile"
|
|
||||||
- if: $CI_COMMIT_BRANCH =~ '/^release/'
|
|
||||||
exists:
|
exists:
|
||||||
- "Dockerfile"
|
- "Dockerfile"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue