mirror of
https://github.com/thegeeklab/drone-docker-buildx.git
synced 2024-11-05 12:30:44 +00:00
34 lines
493 B
Markdown
34 lines
493 B
Markdown
# drone-docker
|
|
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
|
|
{
|
|
"clone": {
|
|
"dir": "/drone/src"
|
|
},
|
|
"commit" : {
|
|
"sha": "9f2849d5",
|
|
"branch": "master"
|
|
},
|
|
"vargs": {
|
|
"username": "foo",
|
|
"password": "bar",
|
|
"email": "foo@bar.com",
|
|
"repo": "foo/bar"
|
|
}
|
|
}
|
|
EOF
|
|
```
|