Go to file
2016-02-21 11:06:40 +01:00
.drone.sec Unification: Drone config, Makefile, structure and badges 2016-01-26 13:00:13 +01:00
.drone.yml Unification: Drone config, Makefile, structure and badges 2016-01-26 13:00:13 +01:00
.gitignore Removed empty lines 2015-12-11 10:40:37 +01:00
Dockerfile Added make task for building docker container 2015-12-15 00:48:25 +01:00
DOCS.md Integrated skip verify, gomail and templates 2016-02-01 12:55:41 +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 Make the builds reproducable based on commit sha 2016-02-21 11:06:40 +01:00
MAINTAINERS Updated MAINTAINERS file [CI SKIP] 2015-12-09 14:18:37 -08:00
Makefile Make the builds reproducable based on commit sha 2016-02-21 11:06:40 +01:00
README.md Integrated skip verify, gomail and templates 2016-02-01 12:55:41 +01:00
sender.go Added premailer to inline all css rules 2016-02-02 11:48:22 +01:00
template.go Integrated skip verify, gomail and templates 2016-02-01 12:55:41 +01:00
types.go Integrated skip verify, gomail and templates 2016-02-01 12:55:41 +01:00

drone-email

Build Status Coverage Status

Drone plugin to send build status notifications via Email

Binary

Build the binary using make:

make deps build

Example

./drone-email <<EOF
{
    "repo": {
        "clone_url": "git://github.com/drone/drone",
        "owner": "drone",
        "name": "drone",
        "full_name": "drone/drone"
    },
    "system": {
        "link_url": "https://beta.drone.io"
    },
    "build": {
        "number": 22,
        "status": "success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "message": "Update the Readme",
        "author": "johnsmith",
        "author_email": "john.smith@gmail.com",
        "event": "push",
        "branch": "master",
        "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
        "ref": "refs/heads/master"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/drone/src/github.com/drone/drone"
    },
    "vargs": {
        "from": "noreply@foo.com",
        "host": "smtp.mailgun.org",
        "port": 587,
        "username": "",
        "password": "",
        "recipients": [
            "octocat@github.com"
        ]
    }
}
EOF

Docker

Build the container using make:

make deps docker

Example

docker run -i plugins/drone-email <<EOF
{
    "repo": {
        "clone_url": "git://github.com/drone/drone",
        "owner": "drone",
        "name": "drone",
        "full_name": "drone/drone"
    },
    "system": {
        "link_url": "https://beta.drone.io"
    },
    "build": {
        "number": 22,
        "status": "success",
        "started_at": 1421029603,
        "finished_at": 1421029813,
        "message": "Update the Readme",
        "author": "johnsmith",
        "author_email": "john.smith@gmail.com"
        "event": "push",
        "branch": "master",
        "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
        "ref": "refs/heads/master"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/drone/src/github.com/drone/drone"
    },
    "vargs": {
        "from": "noreply@foo.com",
        "host": "smtp.mailgun.org",
        "port": 587,
        "username": "",
        "password": "",
        "recipients": [
            "octocat@github.com"
        ]
    }
}
EOF