Drone plugin for publishing Docker images using Docker-in-Docker (personal "fork" with focus on getting latest docker) https://hub.docker.com/r/immawanderer/drone-docker
Go to file
Brad Rydzewski 2708c58b49 Merge pull request #18 from andreo/master
Fix parameter names in a documentation. [CI SKIP]
2015-12-09 08:49:05 -08:00
.drone.sec enable auto deploy, multiple tags 2015-10-27 18:29:46 -07:00
.drone.yml enable auto deploy, multiple tags 2015-10-27 18:29:46 -07:00
.gitignore initial working version of plugin 2015-05-14 22:12:50 -07:00
Dockerfile docker image update 2015-12-03 16:18:18 +00:00
DOCS.md Fix parameter names in a documentation. 2015-11-28 12:10:02 -08:00
LICENSE Initial commit 2015-05-14 16:58:41 -07:00
logo.svg updated logo to svg [CI SKIP] 2015-10-16 00:34:47 -07:00
main.go Merge pull request #19 from Bugagazavr/bip-support 2015-11-27 19:38:26 -08:00
MAINTAINERS Created MAINTAINERS file [CI SKIP] 2015-12-07 01:22:29 -08:00
README.md updated docs 2015-09-02 22:14:15 -07:00
types.go enables multi-tag build and publish 2015-10-27 17:53:51 -07:00

drone-docker

Drone plugin for publishing Docker images

Docker

Build the Docker container:

docker build --rm=true -t plugins/drone-docker .

Build and Publish a Docker container

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