Skip to content
Snippets Groups Projects
Commit a15f14f0 authored by Lyuben Penkovski's avatar Lyuben Penkovski
Browse files

Update Go to 1.21.6 and update CI pipelines

parent 3f1bef69
Branches main
No related tags found
No related merge requests found
Pipeline #69641 failed with stages
in 2 minutes and 28 seconds
variables:
HELPERS_FILE: docker-build.yml
APP_HELM_NAME: task
DOCKER_FILE: deployment/ci/Dockerfile
stages:
- compile
- test
- build
- manifest
- deploy
before_script:
- ln -s /builds /go/src/gitlab.eclipse.org
- cd /go/src/gitlab.eclipse.org/${CI_PROJECT_PATH}
include:
- project: '${HELPERS_PATH}'
file: '${HELPERS_FILE}'
- template: 'Workflows/Branch-Pipelines.gitlab-ci.yml'
linters:
lint:
image: golangci/golangci-lint:latest
stage: test
tags:
- amd64-docker
before_script:
- ln -s /builds /go/src/code.vereign.com
- cd /go/src/code.vereign.com/${CI_PROJECT_PATH}
script:
- go version
- golangci-lint --version
- golangci-lint run
- cd ./cmd/sync
- golangci-lint run
unit tests:
image: golang:1.21.5
image: golang:1.21.6
extends: .gotest
stage: test
script:
- go version
- go test -race ./... -coverprofile=coverage.out
- go tool cover -func=coverage.out
tags:
- amd64-docker
before_script: []
coverage: '/total:\s+\(statements\)\s+(\d+.\d+\%)/'
govulncheck:
image: golang:1.21.5
image: golang:1.21.6
stage: test
tags:
- amd64-docker
before_script:
- ln -s /builds /go/src/code.vereign.com
- cd /go/src/code.vereign.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
FROM golang:1.21.5-alpine3.17 as builder
FROM golang:1.21.6-alpine3.17 as builder
RUN apk add git
......
FROM golang:1.21.5
FROM golang:1.21.6
RUN go install github.com/ysmood/kit/cmd/guard@v0.25.11
......
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