From 07a1259df4ba78657ef19b6d2d9cc9e72912da66 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Fri, 11 Dec 2015 09:44:27 +0100 Subject: [PATCH] Streamlined the documentation --- DOCS.md | 20 ++++++++++--------- README.md | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 66 insertions(+), 14 deletions(-) diff --git a/DOCS.md b/DOCS.md index af265e9..5be51c4 100644 --- a/DOCS.md +++ b/DOCS.md @@ -1,20 +1,22 @@ -Use the Email plugin to send an email to a recipient list when a build completes. The following parameters are used to configure the email plugin: +Use this plugin for sending build status notifications via Email. You can +override the default configuration with the following parameters: -* `from` - sends email from this address -* `host` - smtp server host -* `port` - smtp server port (defaults to `587`) -* `username` - smtp server username -* `password` - smtp server password -* `recipient` - list of email recipients (defaults to commit email) +* `from` - Send notifications from this address +* `host` - SMTP server host +* `port` - SMTP server port, defaults to `587` +* `username` - SMTP username +* `password` - SMTP password +* `recipients` - List of recipients, defaults to commit email -Same email configuration: +## Example + +The following is a sample configuration in your .drone.yml file: ```yaml notify: email: from: noreply@github.com host: smtp.mailgun.org - port: 587 username: octocat password: 12345 recipients: diff --git a/README.md b/README.md index 30f1ca7..8fe4adb 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ # drone-email -Drone plugin for sending email notifications. +[![Build Status](http://beta.drone.io/api/badges/drone-plugins/drone-email/status.svg)](http://beta.drone.io/drone-plugins/drone-email) +[![](https://badge.imagelayers.io/plugins/drone-email:latest.svg)](https://imagelayers.io/?images=plugins/drone-email:latest 'Get your own badge on imagelayers.io') -## Overview +Drone plugin for sending build status notifications via Email -This plugin is responsible for sending build notifications via email: +## Usage -``` +```sh ./drone-email <