gorush/.drone.yml

82 lines
1.4 KiB
YAML
Raw Normal View History

workspace:
path: /go/src/github.com/appleboy/gorush
pipeline:
clone:
image: plugins/git
tags: true
build:
image: appleboy/golang-testing:${GO_VERSION}
environment:
- GOPATH=/go
commands:
- make deps
- make vet
- make lint
- make build
- make embedmd
- coverage all
# send coverage report
- make coverage
# build binary for docker image
- make docker_build
release:
image: appleboy/golang-testing:${GO_VERSION}
pull: true
environment:
TAGS: netgo
commands:
- make release
when:
event: [ tag ]
branch: [ refs/tags/* ]
matrix:
2017-02-19 10:29:28 +00:00
GO_VERSION: 1.8.0
docker:
image: plugins/docker
repo: appleboy/gorush
tags: [ '${DRONE_TAG}' ]
when:
event: [ tag ]
branch: [ refs/tags/* ]
docker:
image: plugins/docker
repo: appleboy/gorush
tags: [ 'latest' ]
when:
event: [ push ]
branch: [ master ]
facebook:
image: appleboy/drone-facebook
pull: true
to: 1234973386524610
when:
status: [ success, failure ]
matrix:
2017-02-19 10:29:28 +00:00
GO_VERSION: 1.8.0
github:
image: plugins/github-release
2017-04-10 04:43:02 +00:00
api_key: ${GITHUB_RELEASE_API_KEY}
files:
- dist/release/*
when:
event: [ tag ]
branch: [ refs/tags/* ]
matrix:
2017-02-19 10:29:28 +00:00
GO_VERSION: 1.8.0
services:
redis:
image: redis:alpine
matrix:
GO_VERSION:
2017-02-19 10:29:28 +00:00
- 1.8.0
- 1.7.5