fortlit/.drone.yml

28 lines
528 B
YAML
Raw Normal View History

2020-01-07 12:39:45 +01:00
---
kind: pipeline
type: docker
steps:
- name: test
2020-02-12 11:14:56 +01:00
image: golang:1.13
2020-01-07 12:39:45 +01:00
commands:
2020-02-12 11:14:56 +01:00
- make test
- name: lint
2020-02-12 11:16:46 +01:00
image: golangci/golangci-lint:v1.23-alpine
2020-01-07 12:39:45 +01:00
commands:
2020-02-12 11:16:46 +01:00
- apk add --no-cache make
2020-02-12 11:14:56 +01:00
- make lint
2020-01-07 12:39:45 +01:00
- name: build
2020-02-12 11:14:56 +01:00
image: golang:1.13
2020-01-07 12:39:45 +01:00
commands:
2020-02-12 11:14:56 +01:00
- go get -u github.com/mitchellh/gox
- make build
2020-01-07 12:39:45 +01:00
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_token
files:
2020-02-12 11:14:56 +01:00
- fortlit-go_*
2020-01-07 12:39:45 +01:00
when:
event: tag