Go to file
Brad Rydzewski 4a36ff8f96 Merge pull request #7 from antonikonovalov/master
fix(file): fixing work with Dockerfile.*
2015-10-21 12:54:06 -07:00
.drone.yml updated docs 2015-09-02 22:14:15 -07:00
.gitignore initial working version of plugin 2015-05-14 22:12:50 -07:00
Dockerfile removed wrapdocker, removed storage_driver setting 2015-09-04 12:08:59 -07:00
DOCS.md update DOCS.md 2015-10-08 18:54:10 +03: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 refact(main): readable 2015-10-16 10:37:17 +03:00
README.md updated docs 2015-09-02 22:14:15 -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