Skip to content
Snippets Groups Projects

Refactor deployment

Open Kalin Daskalov requested to merge refactor-deployment into main
+ 13
63
include:
- project: '${HELPERS_PATH}'
ref: main
file: 'cicd-template.yml'
- project: '${HELPERS_PATH}'
ref: main
file: 'go-template.yml'
variables:
HELPERS_FILE: docker-build.yml
APP_HELM_NAME: cache
DOCKER_FILE: deployment/ci/Dockerfile
RUNNER_TAG: hetzner
GO_VERSION: 1.22.4
GOLANGCI_LINT_VERSION: latest
stages:
- compile
- test
- build
- manifest
- deploy
include:
- project: "${HELPERS_PATH}"
file: "${HELPERS_FILE}"
- template: "Workflows/Branch-Pipelines.gitlab-ci.yml"
lint:
image: golangci/golangci-lint:v1.50.1
stage: test
tags:
- amd64-docker
script:
- golangci-lint --version
- golangci-lint run
before_script:
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}
unit tests:
image: golang:1.19.4
extends: .gotest
stage: test
tags:
- amd64-docker
before_script: []
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
govulncheck:
image: golang:1.19.4
stage: test
tags:
- amd64-docker
before_script:
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/${CI_PROJECT_PATH}
script:
- go version
- go install golang.org/x/vuln/cmd/govulncheck@latest
- govulncheck ./...
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
- trigger-deploy
\ No newline at end of file
Loading