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
2870a4a7a5
commit
78d0c48bc8
5 changed files with 19 additions and 6 deletions
|
|
@ -16,8 +16,8 @@ include:
|
|||
version:
|
||||
extends: .version
|
||||
stage: .pre
|
||||
only:
|
||||
- main
|
||||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME == 'main'
|
||||
|
||||
sonarqube:
|
||||
extends: .sonarcloud-check
|
||||
|
|
@ -25,6 +25,10 @@ sonarqube:
|
|||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME == 'main' || $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||
|
||||
golang-lint:
|
||||
extends: .golang-lint
|
||||
stage: .pre
|
||||
|
||||
gobuild:
|
||||
extends: .golang-build-api
|
||||
stage: build
|
||||
|
|
@ -49,4 +53,4 @@ helm:
|
|||
- job: version
|
||||
artifacts: true
|
||||
rules:
|
||||
- if: $CI_COMMIT_REF_NAME == 'main'
|
||||
- if: $CI_COMMIT_REF_NAME == 'main'
|
||||
|
|
|
|||
4
scripts/golang-lint.sh
Normal file
4
scripts/golang-lint.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
#%%MULTILINE_YAML_START
|
||||
#Build golang api
|
||||
golangci-lint run ./...
|
||||
|
|
@ -5,4 +5,9 @@
|
|||
artifacts:
|
||||
expire_in: 1 hour
|
||||
paths:
|
||||
- $CI_PROJECT_DIR/output
|
||||
- $CI_PROJECT_DIR/output
|
||||
|
||||
.golang-lint:
|
||||
image: registry.durp.info/golangci/golangci-lint:latest
|
||||
script:
|
||||
- ./scripts/golang-lint.sh
|
||||
|
|
@ -3,7 +3,7 @@
|
|||
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
|
||||
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
|
||||
image:
|
||||
name: sonarsource/sonar-scanner-cli:latest
|
||||
name: registry.durp.info/sonarsource/sonar-scanner-cli:latest
|
||||
entrypoint: [""]
|
||||
cache:
|
||||
key: "${CI_JOB_NAME}"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
.version:
|
||||
image: gittools/gitversion:5.12.0
|
||||
image: registry.durp.info/gittools/gitversion:5.12.0
|
||||
variables:
|
||||
GIT_DEPTH: "0"
|
||||
script:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue