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
|
|
|
|
image: golang:1.13
|
2020-01-07 12:39:45 +01:00
|
|
|
commands:
|
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
|