gogitlabber/.gitlab-ci.yml

32 lines
581 B
YAML

stages:
- "linter"
- "testing"
- "releasing"
linter:
stage: "linter"
image: "golangci/golangci-lint:latest-alpine"
script:
- "golangci-lint run"
testing:
stage: "testing"
needs:
- "linter"
image: "cr.simoncor.net/siempie/go-build:latest"
script:
- "go test cmd/gogitlabber/*.go"
releasing:
stage: "releasing"
needs:
- "testing"
image:
name: "goreleaser/goreleaser:v2.8.2"
entrypoint: [""]
rules:
- if: '$CI_COMMIT_TAG'
variables:
GITLAB_TOKEN: '$GORELEASER_GITLAB_TOKEN'
script:
- "goreleaser release --clean"