chore: project boilerplate

This commit is contained in:
Felipe M 2025-05-08 10:09:52 +02:00
parent e5cf23619d
commit 9dafbe26c7
Signed by: fmartingr
GPG key ID: CCFBC5637D4000A8
10 changed files with 577 additions and 52 deletions

23
.woodpecker/ci.yml Normal file
View file

@ -0,0 +1,23 @@
when:
event:
- push
- pull_request
branch:
- main
steps:
format:
image: golang:1.24
commands:
- make format
- git diff --exit-code # Fail if files were changed
lint:
image: golang:1.24
commands:
- make ci-lint
test:
image: golang:1.24
commands:
- make test

16
.woodpecker/release.yml Normal file
View file

@ -0,0 +1,16 @@
when:
- event: tag
branch: main
steps:
- name: Release
image: goreleaser/goreleaser:latest
environment:
GITEA_TOKEN:
from_secret: GITEA_TOKEN
DOCKER_HOST: unix:///var/run/docker.sock
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
commands:
- docker login -u fmartingr -p $GITEA_TOKEN git.nakama.town
- goreleaser release --clean