2021-11-02 03:22:27 +00:00
|
|
|
pipeline:
|
|
|
|
compliance:
|
2022-06-03 03:23:14 +00:00
|
|
|
image: golang:1.18
|
2021-11-02 03:22:27 +00:00
|
|
|
commands:
|
|
|
|
- go test -race ./...
|
|
|
|
- go vet ./...
|
|
|
|
- go run github.com/rs/zerolog/cmd/lint go.jolheiser.com/tmpl
|
|
|
|
- go build
|
|
|
|
when:
|
|
|
|
event: pull_request
|
|
|
|
|
2022-06-03 03:23:14 +00:00
|
|
|
release:
|
|
|
|
image: goreleaser/goreleaser
|
2021-11-02 03:22:27 +00:00
|
|
|
commands:
|
2022-06-03 03:23:14 +00:00
|
|
|
- goreleaser release
|
|
|
|
secrets: [ gitea_token ]
|
2021-11-02 03:22:27 +00:00
|
|
|
when:
|
|
|
|
event: [ push, tag ]
|
|
|
|
branch: main
|
|
|
|
|
|
|
|
prune:
|
|
|
|
image: jolheiser/drone-gitea-prune
|
2022-06-03 03:23:14 +00:00
|
|
|
settings:
|
|
|
|
base: https://git.jojodev.com
|
|
|
|
token:
|
|
|
|
from_secret: gitea_token
|
2021-11-02 03:22:27 +00:00
|
|
|
when:
|
|
|
|
event: tag
|