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

update .gitlab-ci.yml

parent 6f6ccfb0
No related branches found
No related tags found
1 merge request!5Add cicd
Pipeline #50985 canceled with stages
in 53 seconds
variables:
APP_HELM_NAME: cache
DOCKER_FILE: deployment/ci/Dockerfile
GOOGLE_IMAGE: ${GOOGLE_LIGHT_REGISTRY_URL}/gaiax/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
GOOGLE_IMAGE: ${GOOGLE_LIGHT_REGISTRY_URL}/backend/rse/$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: 'Seal/ci-helpers'
file: 'docker-build.yml'
- template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
lint:
image: golangci/golangci-lint:v1.44.2
......@@ -20,21 +23,23 @@ lint:
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.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: []
include:
- project: 'Seal/ci-helpers'
file: 'docker-build.yml'
- template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
ppc64le:
extends: .docker-build
stage: build
tags:
- ppc64le-docker
amd64:
extends: .docker-build
......@@ -42,14 +47,14 @@ amd64:
tags:
- amd64-docker
manifest:
extends: .manifest-amd64
local:
extends: .manifest
stage: manifest
manifest-release:
extends: .manifest-release
cloud:
extends: .manifest-cloud
stage: manifest
manifest-cloud:
extends: .manifest-cloud
nexus:
extends: .manifest-release
stage: manifest
variables:
APP_HELM_NAME: proof-manager
DOCKER_FILE: deployment/ci/Dockerfile
GOOGLE_IMAGE: ${GOOGLE_LIGHT_REGISTRY_URL}/gaiax/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME
stages:
- build
- manifest
include:
- project: 'Seal/ci-helpers'
file: 'docker-build.yml'
- template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
amd64:
extends: .docker-build
stage: build
tags:
- amd64-docker
manifest:
extends: .manifest-amd64
stage: manifest
manifest-release:
extends: .manifest-release
stage: manifest
manifest-cloud:
extends: .manifest-cloud
stage: manifest
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:
- test
- build
- manifest
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.44.2
stage: test
tags:
- amd64-docker
script:
- golangci-lint --version
- golangci-lint run
unit tests:
image: golang:1.17.7
stage: test
tags:
- amd64-docker
script:
- go version
- go test -race ./... -coverprofile=coverage.out
- go tool cover -func=coverage.out
include:
- project: 'Seal/ci-helpers'
file: 'docker-build.yml'
- template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
amd64:
extends: .docker-build
stage: build
tags:
- amd64-docker
manifest:
extends: .manifest-amd64
stage: manifest
manifest-release:
extends: .manifest-release
stage: manifest
manifest-cloud:
extends: .manifest-cloud
stage: manifest
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