tmpl/.woodpecker.yml

35 lines
675 B
YAML
Raw Normal View History

pipeline:
compliance:
image: golang:1.18
commands:
- go test -race ./...
- go vet ./...
- go run github.com/rs/zerolog/cmd/lint go.jolheiser.com/tmpl
when:
event: pull_request
build:
image: goreleaser/goreleaser
commands:
- goreleaser build
when:
event: pull_request
release:
image: goreleaser/goreleaser
commands:
- goreleaser release
secrets: [ gitea_token ]
when:
event: [ push, tag ]
branch: main
prune:
image: jolheiser/drone-gitea-prune
settings:
base: https://git.jojodev.com
token:
from_secret: gitea_token
when:
event: tag