Add webhook calls to .drone.yml
All checks were successful
the build was successful

This commit is contained in:
Peter Stuifzand 2019-01-12 16:42:29 +01:00
parent f3f5d30385
commit 495425ba7f
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -1,10 +1,4 @@
pipeline:
# build:
# image: golang
# commands:
# - go get p83.nl/go/ekster/...
# - go build p83.nl/go/ekster/cmd/eksterd
publish:
image: plugins/docker
repo: registry.stuifzandapp.com/microsub-server
@ -20,3 +14,19 @@ pipeline:
- cd /home/microsub/microsub
- docker-compose pull web
- docker-compose up -d
notify:
image: plugins/webhook
settings:
urls:
from_secret: success_webhook
when:
status: [success]
notify_failure:
image: plugins/webhook
settings:
urls:
from_secret: failure_webhook
when:
status: [failure]