Skip to content
Snippets Groups Projects

Add cicd

Merged Tancho Mihov requested to merge add-cicd into main
1 file
+ 36
7
Compare changes
  • Side-by-side
  • Inline
+ 36
7
 
variables:
 
APP_HELM_NAME: cache
 
DOCKER_FILE: deployment/ci/Dockerfile
 
GOOGLE_IMAGE: ${GOOGLE_LIGHT_REGISTRY_URL}/gaiax/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
 
stages:
stages:
 
- compile
- test
- test
 
- build
 
- manifest
 
- deploy
before_script:
include:
- ln -s /builds /go/src/code.vereign.com
- project: 'gaiax/tsa/ci-helpers'
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
file: 'docker-build.yml'
 
- template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
lint:
lint:
image: golangci/golangci-lint:v1.44.2
image: golangci/golangci-lint:v1.44.2
@@ -13,13 +23,32 @@ lint:
@@ -13,13 +23,32 @@ lint:
script:
script:
- golangci-lint --version
- golangci-lint --version
- golangci-lint run
- golangci-lint run
 
before_script:
 
- ln -s /builds /go/src/code.vereign.com
 
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
unit tests:
unit tests:
image: golang:1.17.7
image: golang:1.17.7
 
extends: .gotest
stage: test
stage: test
tags:
tags:
- amd64-docker
- amd64-docker
script:
before_script: []
- go version
- go test -race ./... -coverprofile=coverage.out
amd64:
- go tool cover -func=coverage.out
extends: .docker-build
 
stage: build
 
tags:
 
- amd64-docker
 
 
manifest:
 
extends: .manifest-amd64
 
stage: manifest
 
 
cloud:
 
extends: .manifest-cloud
 
stage: manifest
 
 
release:
 
extends: .manifest-release
 
stage: manifest
Loading