wg-quicker/.drone.yml
Marvin Steadfast d459840463
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
ci: fixed golangci-lint versions
2021-05-11 15:10:13 +02:00

58 lines
961 B
YAML

---
kind: pipeline
name: default
steps:
- name: tags
image: alpine/git
commands:
- git fetch --tags
- name: submodules
image: alpine/git
commands:
- git submodule init
- git submodule update
depends_on:
- tags
- name: lint
image: golangci/golangci-lint:v1.39.0
commands:
- make lint
depends_on:
- submodules
- name: test
image: golang:latest
commands:
- make test
depends_on:
- submodules
- name: build
image: goreleaser/goreleaser:v0.162.0
commands:
- make build
depends_on:
- lint
- test
when:
event:
exclude:
- tag
- name: release
image: goreleaser/goreleaser:v0.162.0
environment:
GITHUB_TOKEN:
from_secret: github_token
commands:
- goreleaser release --rm-dist --parallelism=1
depends_on:
- lint
- test
when:
event:
- tag