woodpecker-docker-buildx/README.md

42 lines
914 B
Markdown
Raw Normal View History

2015-05-14 23:58:41 +00:00
# drone-docker
2015-05-15 05:12:50 +00:00
2016-01-17 23:20:19 +00:00
[![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
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
{
2015-09-03 05:14:15 +00:00
"workspace": {
"path": "/drone/src"
2015-05-15 05:12:50 +00:00
},
2015-09-03 05:14:15 +00:00
"build" : {
"number": 1,
"head_commit": {
"sha": "9f2849d5",
"branch": "master",
"ref": "refs/heads/master"
}
2015-05-15 05:12:50 +00:00
},
"vargs": {
"username": "kevinbacon",
"password": "pa$$word",
2015-05-15 05:12:50 +00:00
"email": "foo@bar.com",
"repo": "foo/bar",
2015-05-15 07:09:56 +00:00
"storage_driver": "aufs"
2015-05-15 05:12:50 +00:00
}
}
EOF
```