feat(ci): move testing and releasing
This commit is contained in:
parent
c78f2ac329
commit
b94762ae5f
3 changed files with 28 additions and 22 deletions
|
|
@ -10,27 +10,9 @@ include:
|
|||
|
||||
# linting
|
||||
- component: "$CI_SERVER_FQDN/components/golanglint/golanglint@v1.0.0"
|
||||
inputs:
|
||||
stage: "linting"
|
||||
|
||||
testing:
|
||||
stage: "testing"
|
||||
needs:
|
||||
- "linting"
|
||||
image: "cr.simoncor.net/siempie/go-build:latest"
|
||||
script:
|
||||
- "go test cmd/gogitlabber/*.go"
|
||||
# testing
|
||||
- local: ".gitlab/testing.yaml"
|
||||
|
||||
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"
|
||||
# releaseing
|
||||
- local: ".gitlab/releasing.yaml"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue