drone-docker-buildx/README.md

35 lines
534 B
Markdown
Raw Normal View History

2015-05-15 01:58:41 +02:00
# drone-docker
Drone plugin for publishing Docker images
2015-05-15 07:12:50 +02: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": {
"username": "kevinbacon",
"password": "pa$$word",
2015-05-15 07:12:50 +02:00
"email": "foo@bar.com",
"repo": "foo/bar",
"storage_driver": "brtfs"
2015-05-15 07:12:50 +02:00
}
}
EOF
```