feat(ci): removed build stage
This commit is contained in:
parent
edd4999b73
commit
29c4ac3d69
1 changed files with 2 additions and 14 deletions
|
|
@ -2,7 +2,7 @@ image: "golang:alpine"
|
||||||
stages:
|
stages:
|
||||||
- "linter"
|
- "linter"
|
||||||
- "testing"
|
- "testing"
|
||||||
- "build"
|
- "release"
|
||||||
|
|
||||||
linter:
|
linter:
|
||||||
stage: "linter"
|
stage: "linter"
|
||||||
|
|
@ -18,22 +18,10 @@ testing:
|
||||||
script:
|
script:
|
||||||
- "go test cmd/gogitlabber/*.go"
|
- "go test cmd/gogitlabber/*.go"
|
||||||
|
|
||||||
build:
|
|
||||||
stage: "build"
|
|
||||||
needs:
|
|
||||||
- "testing"
|
|
||||||
image: "cr.simoncor.net/siempie/go-build:latest"
|
|
||||||
script:
|
|
||||||
- "GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o gogitlabber cmd/gogitlabber/*.go"
|
|
||||||
artifacts:
|
|
||||||
name: "${CI_PROJECT_NAME}"
|
|
||||||
paths:
|
|
||||||
- "gogitlabber"
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
stage: "release"
|
stage: "release"
|
||||||
needs:
|
needs:
|
||||||
- "build"
|
- "testing"
|
||||||
image:
|
image:
|
||||||
name: "goreleaser/goreleaser:v2.8.2"
|
name: "goreleaser/goreleaser:v2.8.2"
|
||||||
entrypoint: [""]
|
entrypoint: [""]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue