This commit is contained in:
2023-05-21 08:41:53 -05:00
parent 8462bc5317
commit 6f04373644
8 changed files with 31 additions and 129 deletions

View File

@@ -7,7 +7,6 @@
services:
- name: docker:dind
entrypoint: ["dockerd-entrypoint.sh", "--tls=false"]
stage: build
script:
- ./scripts/docker-login.sh
- ./scripts/docker-build.sh

8
templates/golang.tpl.yml Normal file
View File

@@ -0,0 +1,8 @@
.golang-build-api:
image: registry.durp.info/golang:1.20
script:
- ./scripts/golang-build-api.sh
artifacts:
expire_in: 1 hour
paths:
- $CI_PROJECT_DIR/output

View File

@@ -1,6 +1,5 @@
.helm-createchart:
image: registry.durp.info/dtzar/helm-kubectl
stage: build
script:
- ./scripts/helm-addrepo.sh
- ./scripts/helm-package.sh

View File

@@ -1,5 +1,4 @@
.sonarcloud-check:
stage: .pre
variables:
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
@@ -12,5 +11,3 @@
- .sonar/cache
script:
- sonar-scanner
rules:
- if: $CI_COMMIT_REF_NAME == 'main' || $CI_PIPELINE_SOURCE == 'merge_request_event'

View File

@@ -1,6 +1,5 @@
.version:
image: gittools/gitversion:5.12.0
stage: .pre
variables:
GIT_DEPTH: "0"
script: