updated docs
This commit is contained in:
parent
a92ebb2b11
commit
b95a703ab3
@ -1,7 +1,7 @@
|
|||||||
build:
|
build:
|
||||||
image: go
|
image: golang:1.4.2
|
||||||
commands:
|
commands:
|
||||||
- go test
|
- go get
|
||||||
- go build
|
- go build
|
||||||
- go test
|
- go test
|
||||||
|
|
||||||
@ -14,5 +14,3 @@ plugin:
|
|||||||
- docker
|
- docker
|
||||||
- image
|
- image
|
||||||
- container
|
- container
|
||||||
|
|
||||||
|
|
||||||
|
17
DOCS.md
17
DOCS.md
@ -1,5 +1,5 @@
|
|||||||
Use the Docker plugin to build and push Docker images to a registry.
|
Use the Docker plugin to build and push Docker images to a registry.
|
||||||
The following parameters are used to configuration this plugin:
|
The following parameters are used to configure this plugin:
|
||||||
|
|
||||||
* **registry** - authenticates to this registry
|
* **registry** - authenticates to this registry
|
||||||
* **username** - authenticates with this username
|
* **username** - authenticates with this username
|
||||||
@ -7,6 +7,8 @@ The following parameters are used to configuration this plugin:
|
|||||||
* **email** - authenticates with this email
|
* **email** - authenticates with this email
|
||||||
* **repo** - repository name for the image
|
* **repo** - repository name for the image
|
||||||
* **tag** - repository tag for the image
|
* **tag** - repository tag for the image
|
||||||
|
* **insecure** - enable insecure communication to this registry
|
||||||
|
* **storage_driver** - use `aufs`, `devicemapper`, `btrfs` or `overlay` driver
|
||||||
|
|
||||||
The following is a sample Docker configuration in your .drone.yml file:
|
The following is a sample Docker configuration in your .drone.yml file:
|
||||||
|
|
||||||
@ -19,4 +21,17 @@ pubish:
|
|||||||
repo: foo/bar
|
repo: foo/bar
|
||||||
tag: latest
|
tag: latest
|
||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
|
insecure: false
|
||||||
|
```
|
||||||
|
|
||||||
|
You may want to dynamically tag your image. Use the `$$BRANCH`, `$$COMMIT` and `$$BUILD_NUMBER` variables to tag your image with the branch, commit sha or build number:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
pubish:
|
||||||
|
docker:
|
||||||
|
username: kevinbacon
|
||||||
|
password: $$DOCKER_PASSWORD
|
||||||
|
email: kevin.bacon@mail.com
|
||||||
|
repo: foo/bar
|
||||||
|
tag: $$BRANCH
|
||||||
```
|
```
|
||||||
|
14
README.md
14
README.md
@ -15,12 +15,16 @@ Build and Publish a Docker container
|
|||||||
```sh
|
```sh
|
||||||
docker run -i --privileged -v $(pwd):/drone/src plugins/drone-docker <<EOF
|
docker run -i --privileged -v $(pwd):/drone/src plugins/drone-docker <<EOF
|
||||||
{
|
{
|
||||||
"clone": {
|
"workspace": {
|
||||||
"dir": "/drone/src"
|
"path": "/drone/src"
|
||||||
},
|
},
|
||||||
"commit" : {
|
"build" : {
|
||||||
"sha": "9f2849d5",
|
"number": 1,
|
||||||
"branch": "master"
|
"head_commit": {
|
||||||
|
"sha": "9f2849d5",
|
||||||
|
"branch": "master",
|
||||||
|
"ref": "refs/heads/master"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"vargs": {
|
"vargs": {
|
||||||
"username": "kevinbacon",
|
"username": "kevinbacon",
|
||||||
|
Loading…
Reference in New Issue
Block a user