0
0
mirror of https://github.com/thegeeklab/wp-gitea-release.git synced 2024-11-10 03:40:40 +00:00
wp-gitea-release/.drone.yml

23 lines
526 B
YAML
Raw Normal View History

workspace:
base: /go
2017-08-27 01:41:52 +00:00
path: src/github.com/drone-plugins/drone-github-release
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
2017-08-27 01:41:52 +00:00
publish:
image: plugins/docker
repo: plugins/github-release
tags: [ "latest", "1.0", "1" ]
2017-08-27 01:41:52 +00:00
secrets: [docker_username, docker_password]
when:
branch: master
event: push