-
-
Save iver/d6d1d39211dafd1ad4723e51db331777 to your computer and use it in GitHub Desktop.
Drone CI slack template. more on drone.io + slack integration: http://plugins.drone.io/drone-plugins/drone-slack/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline: | |
build: | |
image: alpine | |
commands: | |
- echo "do something :v" | |
slack: | |
image: plugins/slack | |
channel: dev__builds | |
webhook: https://hooks.slack.com/services/... | |
# here's the template :) | |
# notice that the repo endpoint is hardcoded to `https://github.com/`. | |
# you may adjust it accordingly. | |
template: > | |
{{#if build.pull }} | |
*{{#success build.status}}✔{{ else }}✘{{/success}} {{ uppercasefirst build.status }}*: <https://github.com/{{ repo.owner }}/{{ repo.name }}/pull/{{ build.pull }}|Pull Request #{{ build.pull }}> | |
{{else}} | |
*{{#success build.status}}✔{{ else }}✘{{/success}} {{ uppercasefirst build.status }}: Build #{{ build.number }}* (type: `{{ build.event }}`) | |
{{/if}} | |
Commit: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commit/{{ build.commit }}|{{ truncate build.commit 8 }}> | |
Branch: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}> | |
Author: {{ build.author }} | |
<{{ build.link }}|Visit build page ↗> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment