ci: render
Rendered by https://gitlab.com/developerdurp/yml/-/pipelines/873846562
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
services:
|
services:
|
||||||
- name: docker:dind
|
- name: docker:dind
|
||||||
entrypoint: ["dockerd-entrypoint.sh", "--tls=false"]
|
entrypoint: ["dockerd-entrypoint.sh", "--tls=false"]
|
||||||
stage: build
|
|
||||||
script:
|
script:
|
||||||
# Begin of docker-login.sh
|
# Begin of docker-login.sh
|
||||||
- |
|
- |
|
||||||
|
|||||||
10
jobs/golang.yml
Normal file
10
jobs/golang.yml
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
.golang-build-api:
|
||||||
|
image: registry.durp.info/golang:1.20
|
||||||
|
script:
|
||||||
|
# Begin of golang-build-api.sh
|
||||||
|
- "#Build golang api\nexport GOPATH=/go\nexport PATH=$PATH:$GOPATH/bin\nmkdir output\ngo install \ngo install github.com/swaggo/swag/cmd/swag@v1.8.12 \nswag init\ngo build -o ./output/main .\n"
|
||||||
|
# End of golang-build-api.sh
|
||||||
|
artifacts:
|
||||||
|
expire_in: 1 hour
|
||||||
|
paths:
|
||||||
|
- $CI_PROJECT_DIR/output
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
.helm-createchart:
|
.helm-createchart:
|
||||||
image: registry.durp.info/dtzar/helm-kubectl
|
image: registry.durp.info/dtzar/helm-kubectl
|
||||||
stage: build
|
|
||||||
script:
|
script:
|
||||||
# Begin of helm-addrepo.sh
|
# Begin of helm-addrepo.sh
|
||||||
- |
|
- |
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
.sonarcloud-check:
|
.sonarcloud-check:
|
||||||
stage: .pre
|
|
||||||
variables:
|
variables:
|
||||||
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
|
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
|
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
|
||||||
@@ -12,5 +11,3 @@
|
|||||||
- .sonar/cache
|
- .sonar/cache
|
||||||
script:
|
script:
|
||||||
- sonar-scanner
|
- sonar-scanner
|
||||||
rules:
|
|
||||||
- if: $CI_COMMIT_REF_NAME == 'main' || $CI_PIPELINE_SOURCE == 'merge_request_event'
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
.version:
|
.version:
|
||||||
image: gittools/gitversion:5.12.0
|
image: gittools/gitversion:5.12.0
|
||||||
stage: .pre
|
|
||||||
variables:
|
variables:
|
||||||
GIT_DEPTH: "0"
|
GIT_DEPTH: "0"
|
||||||
script:
|
script:
|
||||||
|
|||||||
Reference in New Issue
Block a user