gitea-release/.drone.yml

30 lines
583 B
YAML
Raw Normal View History

workspace:
base: /go
pipeline:
test:
image: golang:1.6
environment:
- CGO_ENABLED=0
commands:
- go vet
- go test -cover -coverprofile=coverage.out
- go build -ldflags "-s -w -X main.build=$DRONE_BUILD_NUMBER" -a -tags netgo
latest:
image: docker
repo: plugins/github-release
tags: [ "latest", "1.0", "1" ]
when:
branch: master
event: push
plugin:
name: GitHub Release
desc: Publish files and artifacts to GitHub Releases
type: publish
image: plugins/github-release
labels:
- github
- release