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: # run only if scheduled with this name - if: '$SCHEDULE_NAME == "release"' - when: "never" script: - 'GITLAB_TOKEN=${GORELEASER_GITLAB_TOKEN} goreleaser release --clean'