Skip to content

Latest commit

 

History

History
63 lines (57 loc) · 1.28 KB

API.md

File metadata and controls

63 lines (57 loc) · 1.28 KB

Usage

./drone-capistrano <<EOF
{
    "repo": {
        "clone_url": "git://github.com/drone-plugins/drone-capistrano",
        "full_name": "drone/drone",
        "owner": "drone",
        "name": "drone"
    },
    "build": {
        "event": "push",
        "branch": "master",
        "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
        "ref": "refs/heads/master"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/home/user/golang/src/github.com/drone-plugins/drone-capistrano"
    },
    "vargs": {
        "tasks": "production deploy"
    }
}
EOF

Docker

Build the Docker container using make:

make deps build docker

Example

docker run -i plugins/drone-capistrano <<EOF
{
    "repo": {
        "clone_url": "git://github.com/drone-plugins/drone-capistrano",
        "full_name": "drone/drone",
        "owner": "drone",
        "name": "drone"
    },
    "build": {
        "event": "push",
        "branch": "master",
        "commit": "436b7a6e2abaddfd35740527353e78a227ddcb2c",
        "ref": "refs/heads/master"
    },
    "workspace": {
        "root": "/drone/src",
        "path": "/home/user/golang/src/github.com/drone-plugins/drone-capistrano"
    },
    "vargs": {
        "tasks": "production deploy"
    }
}
EOF