Thomas Boerger 146cd70b2d Merge pull request #3 from drone-plugins/feature/docker-task
Added make task for building docker container
2015-12-15 12:50:43 +01:00
2015-11-10 17:44:23 -08:00
2015-12-11 10:40:37 +01:00
2015-12-11 10:40:37 +01:00
2015-12-11 10:40:37 +01:00
2015-12-11 10:40:37 +01:00
2015-12-09 14:18:37 -08: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

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
S
Description
No description provided
Readme Apache-2.0 72 MiB
Languages
Go 98.9%
Shell 0.6%
Makefile 0.5%