feat(ci): move testing and releasing
This commit is contained in:
parent
c78f2ac329
commit
b94762ae5f
3 changed files with 28 additions and 22 deletions
15
.gitlab/releasing.yaml
Normal file
15
.gitlab/releasing.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
|
||||
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"
|
||||
9
.gitlab/testing.yaml
Normal file
9
.gitlab/testing.yaml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
|
||||
testing:
|
||||
stage: "testing"
|
||||
needs:
|
||||
- "linting"
|
||||
image: "cr.simoncor.net/siempie/go-build:latest"
|
||||
script:
|
||||
- "go test cmd/gogitlabber/*.go"
|
||||
Loading…
Add table
Add a link
Reference in a new issue