feat: improve woodpecker config
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
4c9a1fb04c
commit
bcd63a42a8
1 changed files with 17 additions and 5 deletions
|
|
@ -1,27 +1,39 @@
|
|||
---
|
||||
|
||||
clone:
|
||||
- name: "clone"
|
||||
image: "woodpeckerci/plugin-git"
|
||||
settings:
|
||||
depth: 0
|
||||
tags: true
|
||||
|
||||
steps:
|
||||
golang-lint:
|
||||
|
||||
# lintint
|
||||
- name: "golang-lint"
|
||||
image: "cr.simoncor.net/dockerhub/golangci/golangci-lint:v2.1-alpine"
|
||||
commands:
|
||||
- "golangci-lint run"
|
||||
|
||||
go-test:
|
||||
# testing
|
||||
- name: "go-test"
|
||||
image: "registry.gitlab.simoncor.net/oci/go-build:v25.06.03"
|
||||
depends_on:
|
||||
- "golang-lint"
|
||||
commands:
|
||||
- "go test ./..."
|
||||
|
||||
releasing:
|
||||
# releasing
|
||||
- name: "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"
|
||||
FORGEJO_TOKEN:
|
||||
from_secret: "goreleaser_forgejo_token"
|
||||
commands:
|
||||
- "goreleaser release --clean"
|
||||
when:
|
||||
event: "tag"
|
||||
- event: "tag"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue