ci: added linter stage

This commit is contained in:
Simon Cornet 2025-03-04 06:44:44 +01:00
commit ea71b8a52e

View file

@ -1,9 +1,18 @@
image: "golang:alpine"
stages:
- "linter"
- "build"
go-linter:
stage: "linter"
image: "golangci/golangci-lint:latest-alpine"
script:
- "golangci-lint run"
go-build:
stage: "build"
needs:
- "linter"
image: "cr.simoncor.net/siempie/go-build:latest"
script:
- "GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o gogitlabber cmd/gogitlabber/*"