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:
|
steps:
|
||||||
golang-lint:
|
|
||||||
|
# lintint
|
||||||
|
- name: "golang-lint"
|
||||||
image: "cr.simoncor.net/dockerhub/golangci/golangci-lint:v2.1-alpine"
|
image: "cr.simoncor.net/dockerhub/golangci/golangci-lint:v2.1-alpine"
|
||||||
commands:
|
commands:
|
||||||
- "golangci-lint run"
|
- "golangci-lint run"
|
||||||
|
|
||||||
go-test:
|
# testing
|
||||||
|
- name: "go-test"
|
||||||
image: "registry.gitlab.simoncor.net/oci/go-build:v25.06.03"
|
image: "registry.gitlab.simoncor.net/oci/go-build:v25.06.03"
|
||||||
depends_on:
|
depends_on:
|
||||||
- "golang-lint"
|
- "golang-lint"
|
||||||
commands:
|
commands:
|
||||||
- "go test ./..."
|
- "go test ./..."
|
||||||
|
|
||||||
releasing:
|
# releasing
|
||||||
|
- name: "releasing"
|
||||||
image: "cr.simoncor.net/dockerhub/goreleaser/goreleaser:v2.10.2"
|
image: "cr.simoncor.net/dockerhub/goreleaser/goreleaser:v2.10.2"
|
||||||
depends_on:
|
depends_on:
|
||||||
- "go-test"
|
- "go-test"
|
||||||
secrets:
|
secrets:
|
||||||
- "goreleaser_forgejo_token"
|
- "goreleaser_forgejo_token"
|
||||||
environment:
|
environment:
|
||||||
- "FORGEJO_TOKEN=$GORELEASER_FORGEJO_TOKEN"
|
FORGEJO_TOKEN:
|
||||||
|
from_secret: "goreleaser_forgejo_token"
|
||||||
commands:
|
commands:
|
||||||
- "goreleaser release --clean"
|
- "goreleaser release --clean"
|
||||||
when:
|
when:
|
||||||
event: "tag"
|
- event: "tag"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue