31 lines
514 B
YAML
31 lines
514 B
YAML
build:
|
|
image: golang:1.5
|
|
environment:
|
|
- GO15VENDOREXPERIMENT=1
|
|
- GOOS=linux
|
|
- GOARCH=amd64
|
|
- CGO_ENABLED=0
|
|
commands:
|
|
- go get
|
|
- go build
|
|
- go test
|
|
|
|
publish:
|
|
docker:
|
|
username: drone
|
|
password: $$DOCKER_PASS
|
|
email: $$DOCKER_EMAIL
|
|
repo: plugins/drone-webhook
|
|
when:
|
|
branch: master
|
|
|
|
plugin:
|
|
name: Webhook
|
|
desc: Send webhook notifications when your build completes.
|
|
type: notify
|
|
image: plugins/drone-webhook
|
|
labels:
|
|
- rest
|
|
- json
|
|
- hook
|