woodpecker-docker-buildx/README.md
2016-01-18 00:20:19 +01:00

42 lines
914 B
Markdown

# drone-docker
[![Build Status](http://beta.drone.io/api/badges/drone-plugins/drone-docker/status.svg)](http://beta.drone.io/drone-plugins/drone-docker)
[![](https://badge.imagelayers.io/plugins/drone-docker:latest.svg)](https://imagelayers.io/?images=plugins/drone-docker:latest 'Get your own badge on imagelayers.io')
Drone plugin for publishing Docker images
## 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
{
"workspace": {
"path": "/drone/src"
},
"build" : {
"number": 1,
"head_commit": {
"sha": "9f2849d5",
"branch": "master",
"ref": "refs/heads/master"
}
},
"vargs": {
"username": "kevinbacon",
"password": "pa$$word",
"email": "foo@bar.com",
"repo": "foo/bar",
"storage_driver": "aufs"
}
}
EOF
```