feat: move releasing to woodpecker
This commit is contained in:
parent
8f65122590
commit
7bd39ea935
3 changed files with 32 additions and 17 deletions
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
|
||||
stages:
|
||||
- "linting"
|
||||
- "testing"
|
||||
- "releasing"
|
||||
|
||||
# include jobs
|
||||
include:
|
||||
- component: "$CI_SERVER_FQDN/components/golang/linting@v2.0.6"
|
||||
- component: "$CI_SERVER_FQDN/components/golang/testing@v2.0.6"
|
||||
- component: "$CI_SERVER_FQDN/components/golang/releasing@v2.0.6"
|
||||
|
|
@ -43,8 +43,8 @@ changelog:
|
|||
- title: "📖 Documentation"
|
||||
regexp: "^docs"
|
||||
|
||||
# gitlab
|
||||
gitlab_urls:
|
||||
api: "https://gitlab.simoncor.net/api/v4/"
|
||||
download: "https://gitlab.simoncor.net"
|
||||
use_package_registry: true
|
||||
# gitea/forgejo
|
||||
gitea_urls:
|
||||
api: "https://git.simoncor.net/api/v1"
|
||||
download: "https://git.simoncor.net"
|
||||
skip_tls_verify: false
|
||||
|
|
|
|||
27
.woodpecker.yml
Normal file
27
.woodpecker.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
---
|
||||
|
||||
steps:
|
||||
golang-lint:
|
||||
image: "cr.simoncor.net/dockerhub/golangci/golangci-lint:v2.1-alpine"
|
||||
commands:
|
||||
- "golangci-lint run"
|
||||
|
||||
go-test:
|
||||
image: "registry.gitlab.simoncor.net/oci/go-build:v25.06.03"
|
||||
depends_on:
|
||||
- "golang-lint"
|
||||
commands:
|
||||
- "go test ./..."
|
||||
|
||||
releasing:
|
||||
image: "cr.simoncor.net/dockerhub/goreleaser/goreleaser:v2.10.2"
|
||||
depends_on:
|
||||
- "go-test"
|
||||
secrets:
|
||||
- "goreleaser_forgejo_token"
|
||||
environment:
|
||||
- "FORGEJO_TOKEN=$GORELEASER_FORGEJO_TOKEN"
|
||||
commands:
|
||||
- "goreleaser release --clean"
|
||||
when:
|
||||
event: "tag"
|
||||
Loading…
Add table
Add a link
Reference in a new issue