mirror of
https://github.com/thegeeklab/wp-gitea-release.git
synced 2024-11-10 03:40:40 +00:00
30 lines
583 B
YAML
30 lines
583 B
YAML
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
|