Skip to content
Snippets Groups Projects
Commit 0d4c798b authored by Tancho Mihov's avatar Tancho Mihov
Browse files

Merge branch 'add-cicd' into 'main'

renamed old .gitlab-ci.yml and added new one

See merge request !5
parents 1cb6cce8 8982b141
No related branches found
No related tags found
1 merge request!5renamed old .gitlab-ci.yml and added new one
Pipeline #51668 passed with stages
in 1 minute and 36 seconds
variables:
APP_HELM_NAME: infohub
DOCKER_FILE: deployment/ci/Dockerfile
GOOGLE_IMAGE: ${GOOGLE_LIGHT_REGISTRY_URL}/gaiax/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
stages:
- compile
- test
- build
- manifest
- deploy
before_script:
- ln -s /builds /go/src/code.vereign.com
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
include:
- project: 'gaiax/tsa/ci-helpers'
file: 'docker-build.yml'
- template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
lint:
image: golangci/golangci-lint:v1.46.2
image: golangci/golangci-lint:v1.44.2
stage: test
tags:
- amd64-docker
script:
- golangci-lint --version
- golangci-lint run
before_script:
- ln -s /builds /go/src/code.vereign.com
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
unit tests:
image: golang:1.17.10
image: golang:1.17.7
extends: .gotest
stage: test
tags:
- amd64-docker
script:
- go version
- go test -race ./... -coverprofile=coverage.out
- go tool cover -func=coverage.out
before_script: []
amd64:
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
stages:
- test
before_script:
- ln -s /builds /go/src/code.vereign.com
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
lint:
image: golangci/golangci-lint:v1.46.2
stage: test
tags:
- amd64-docker
script:
- golangci-lint --version
- golangci-lint run
unit tests:
image: golang:1.17.10
stage: test
tags:
- amd64-docker
script:
- go version
- go test -race ./... -coverprofile=coverage.out
- go tool cover -func=coverage.out
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment