fortlit/.drone.yml

40 lines
659 B
YAML
Raw Normal View History

2020-01-07 12:39:45 +01:00
---
kind: pipeline
name: default
2020-01-07 12:39:45 +01:00
steps:
- name: tags
image: alpine/git
2020-01-07 12:39:45 +01:00
commands:
- git fetch --tags
2020-02-12 11:14:56 +01:00
- name: lint
image: golangci/golangci-lint:latest
2020-01-07 12:39:45 +01:00
commands:
2020-02-12 11:14:56 +01:00
- make lint
- name: test
image: golang:latest
commands:
- make test
2020-01-07 12:39:45 +01:00
- name: build
image: goreleaser/goreleaser:latest
2020-01-07 12:39:45 +01:00
commands:
2020-02-12 11:14:56 +01:00
- make build
when:
event:
exclude:
- tag
- name: release
image: goreleaser/goreleaser:latest
environment:
GITHUB_TOKEN:
2020-01-07 12:39:45 +01:00
from_secret: github_token
commands:
- goreleaser release --rm-dist --parallelism=1
2020-01-07 12:39:45 +01:00
when:
event:
- tag