clone: git: image: woodpeckerci/plugin-git:next pipeline: compliance: image: golang:1.17 commands: - go test -race ./... - go vet ./... - go build when: event: pull_request build: image: golang:1.17 commands: - GOOS="windows" go build ./cmd/spectre - GOOS="linux" go build ./cmd/spectre release-main: image: jolheiser/drone-gitea-main:latest secrets: - source: gitea_token target: plugin_token base: https://git.jojodev.com files: - "spectre" - "spectre.exe" when: event: push branch: main release-tag: image: plugins/gitea-release:1 secrets: - source: gitea_token target: plugin_api_key base_url: https://git.jojodev.com files: - "spectre" - "spectre.exe" when: event: tag tag: v* prune: image: jolheiser/drone-gitea-prune secrets: - source: gitea_token target: plugin_token base: https://git.jojodev.com when: event: tag tag: v*