Go to file
2015-12-11 10:40:37 +01:00
.drone.sec initial commit 2015-11-10 17:44:23 -08:00
.drone.yml initial commit. compiles but hasn't been tested. needs docs too 2015-10-26 15:31:42 -07:00
.gitignore Removed empty lines 2015-12-11 10:40:37 +01:00
Dockerfile initial commit 2015-11-10 17:44:23 -08:00
DOCS.md Streamlined the documentation 2015-12-11 10:40:37 +01:00
LICENSE Removed empty lines 2015-12-11 10:40:37 +01:00
logo.svg initial commit. compiles but hasn't been tested. needs docs too 2015-10-26 15:31:42 -07:00
main.go initial commit 2015-11-10 17:44:23 -08:00
MAINTAINERS Updated MAINTAINERS file [CI SKIP] 2015-12-09 14:18:37 -08:00
README.md Streamlined the documentation 2015-12-11 10:40:37 +01:00
sender.go initial commit 2015-11-10 17:44:23 -08:00
template.go initial commit. compiles but hasn't been tested. needs docs too 2015-10-26 15:31:42 -07:00

drone-email

Build Status

Drone plugin for sending build status notifications via Email

Usage

./drone-email <<EOF
{
    "repo" : {
        "owner": "foo",
        "name": "bar",
        "full_name": "foo/bar"
    },
    "system": {
        "link_url": "http://drone.mycompany.com"
    },
    "build" : {
        "number": 22,
        "status": "success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "commit": "64908ed2414b771554fda6508dd56a0c43766831",
        "branch": "master",
        "message": "Update the Readme",
        "author": "johnsmith",
        "author_email": "john.smith@gmail.com"
    },
    "vargs": {
        "from": "noreply@foo.com",
        "host": "smtp.mailgun.org",
        "port": 587,
        "username": "",
        "password": "",
        "recipients": [
            "octocat@github.com"
        ]
    }
}
EOF

Docker

Build the Docker container using make:

make deps build
docker build --rm=true -t plugins/drone-email .

Example

docker run -i plugins/drone-email <<EOF
{
    "repo" : {
        "owner": "foo",
        "name": "bar",
        "full_name": "foo/bar"
    },
    "system": {
        "link_url": "http://drone.mycompany.com"
    },
    "build" : {
        "number": 22,
        "status": "success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "commit": "64908ed2414b771554fda6508dd56a0c43766831",
        "branch": "master",
        "message": "Update the Readme",
        "author": "johnsmith",
        "author_email": "john.smith@gmail.com"
    },
    "vargs": {
        "from": "noreply@foo.com",
        "host": "smtp.mailgun.org",
        "port": 587,
        "username": "",
        "password": "",
        "recipients": [
            "octocat@github.com"
        ]
    }
}
EOF