2015-05-14 23:58:41 +00:00
|
|
|
# drone-docker
|
|
|
|
Drone plugin for publishing Docker images
|
2015-05-15 05:12:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
## Docker
|
|
|
|
|
|
|
|
Build the Docker container:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
docker build --rm=true -t plugins/drone-docker .
|
|
|
|
```
|
|
|
|
|
|
|
|
Build and Publish a Docker container
|
|
|
|
|
|
|
|
```sh
|
|
|
|
docker run -i --privileged -v $(pwd):/drone/src plugins/drone-docker <<EOF
|
|
|
|
{
|
|
|
|
"clone": {
|
|
|
|
"dir": "/drone/src"
|
|
|
|
},
|
|
|
|
"commit" : {
|
|
|
|
"sha": "9f2849d5",
|
|
|
|
"branch": "master"
|
|
|
|
},
|
|
|
|
"vargs": {
|
2015-05-15 06:58:43 +00:00
|
|
|
"username": "kevinbacon",
|
|
|
|
"password": "pa$$word",
|
2015-05-15 05:12:50 +00:00
|
|
|
"email": "foo@bar.com",
|
2015-05-15 06:58:43 +00:00
|
|
|
"repo": "foo/bar",
|
2015-05-15 07:09:56 +00:00
|
|
|
"storage_driver": "aufs"
|
2015-05-15 05:12:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
```
|