gogitlabber/.gitlab-ci.yml
2025-06-16 12:03:22 +02:00

34 lines
589 B
YAML

---
stages:
- "linting"
- "testing"
- "releasing"
# include jobs
include:
# linting
- component: "$CI_SERVER_FQDN/components/golanglint/golanglint@v1.0.0"
testing:
stage: "testing"
needs:
- "linting"
image: "cr.simoncor.net/siempie/go-build:latest"
script:
- "go test cmd/gogitlabber/*.go"
releasing:
stage: "releasing"
needs:
- "testing"
image:
name: "goreleaser/goreleaser:v2.10.2"
entrypoint: [""]
rules:
- if: '$CI_COMMIT_TAG'
variables:
GITLAB_TOKEN: '$GORELEASER_GITLAB_TOKEN'
script:
- "goreleaser release --clean"