./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
Build the Docker container using make
:
make deps build docker
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