Setup notifications for failure

This commit is contained in:
Luke Murphy 2021-01-26 13:28:19 +01:00
parent a4aa3d669f
commit 8d73dd3df5
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -19,6 +19,18 @@ steps:
compose: docker-compose.prod.yml compose: docker-compose.prod.yml
deploy_key: deploy_key:
from_secret: drone_ssh_swarm.autonomic.zone from_secret: drone_ssh_swarm.autonomic.zone
- name: notify rocket chat
image: plugins/slack
settings:
webhook:
from_secret: rc_builds_url
username: comradebritney
channel: "internal.builds"
template: "{{repo.owner}}/{{repo.name}} build failed: {{build.link}}"
when:
status:
- failure
trigger: trigger:
branch: branch:
- master - master