feat: improve woodpecker config
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Simon Cornet 2026-05-15 16:53:31 +02:00
commit bcd63a42a8

View file

@ -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"