This image is no longer updated. A newer version that uses Drone's Conversion Extension architecture instead is available at https://github.com/goodwillaz/drone-convert-plugin-slack
This Drone.io config plugin automatically adds Slack notifications before and/or after the steps in a pipeline. It will work with the official drone-slack plugin (default) or Goodwill's drone-slack plugin (and probably any others floating around as long as they use PLUGIN_* environment variables for configuration).
This plugin is available on Docker Hub or you can optionally build and host yourself.
$ docker build --rm -t <your-repo>/drone-config-plugin-slack:latest .
$ drone push <your-repo>/drone-config-plugin-slack:latest
(Necessary config portion shown only)
services:
drone-server:
...
environment:
- DRONE_YAML_ENDPOINT=http://drone-config-plugin-slack:3000
- DRONE_YAML_SECRET=${YAML_SECRET:?YAML_SECRET is required}
...
depends_on:
- drone-config-plugin-slack
...
drone-config-plugin-slack:
image: goodwillaz/drone-config-plugin-slack:latest
environment:
- PLUGIN_SECRET=${YAML_SECRET:?YAML_SECRET is required}
- PLUGIN_GITHUB_TOKEN=${GITHUB_TOKEN}
- SLACK_WEBHOOK=${SLACK_WEBHOOK}
If a step already exists that is named notify-before or notify-after, this config plugin will
not prepend or append Slack notifications to the pipeline.
Here's a full list of environment variables supported by the plugin:
after, Goodwill plugin supports all options)SLACK_ is updated to PLUGIN_ and passed through
to the actual Slack pluginThis plugin also supports microadam's config pipeline plugin.
See the LICENSE file for license rights and limitations (BSD 3-clause).
Content type
Image
Digest
sha256:aef4eaa3b…
Size
42.8 MB
Last updated
about 4 years ago
docker pull goodwillaz/drone-config-plugin-slack