Docker
by drone-plugins
The Docker plugin can be used to build and publish images to the Docker registry.
Example
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
username: kevinbacon
password: pa55word
repo: foo/bar
tags: latest
Properties
registry
stringoptionalauthenticates to this registry
Default: none
username
stringoptionalauthenticates with this username
Default: none
password
stringoptionalauthenticates with this password
Secret recommendedDefault: none
repo
stringoptionalrepository name for the image
Default: none
tags
stringoptionalrepository tag for the image
Default: none
secret
stringoptionalUse buildkit to pass secrets to the dockerbuild. Eg `id=mysecret,src=secret-file`
Default: none
dockerfile
stringoptionaldockerfile to be used
Default: Dockerfile
dry_run
stringoptionalboolean if the docker image should be pushed at the end
Default: none
purge
booleanoptionalboolean if cleanup of the docker image should be done at the end
Default: true
context
stringoptionalthe context path to use, defaults to root of the git repo
Default: none
target
stringoptionalthe build target to use, must be defined in the docker file
Default: none
force_tag
booleanoptionalreplace existing matched image tags
Default: false
insecure
booleanoptionalenable insecure communication to this registry
Default: false
mirror
stringoptionaluse a mirror registry instead of pulling images directly from the central Hub
Default: none
bip
booleanoptionaluse for pass bridge ip
Default: false
custom_dns
stringoptionalset custom dns servers for the container
Default: none
custom_dns_search
stringoptionaldocker daemon dns search domains
Default: none
storage_driver
stringoptionalsupports `aufs`, `overlay` or `vfs` drivers
Default: none
storage_path
stringoptionaldocker daemon storage path
Default: none
build_args
stringoptionalpass custom arguments to docker build
Default: none
build_args_from_env
stringoptionalpass the envvars as custom arguments to docker build
Default: none
auto_tag
booleanoptionalgenerate tag names automatically based on git branch and git tag
Default: false
auto_tag_suffix
stringoptionalgenerate tag names with this suffix
Default: none
debug
booleanoptionallaunch the docker daemon in verbose debug mode
Default: false
launch_debug
booleanoptionallaunch the docker daemon in verbose debug mode
Default: false
mtu
stringoptionaldocker daemon custom mtu setting
Default: none
ipv6
stringoptionaldocker daemon IPv6 networking
Default: none
experimental
booleanoptionaldocker daemon Experimental mode
Default: false
daemon_off
booleanoptionaldon't start the docker daemon
Default: false
cache_from
stringoptionalimages to consider as cache sources
Default: none
squash
booleanoptionalsquash the layers at build time
Default: false
pull_image
booleanoptionalforce pull base image at build time
Default: false
compress
booleanoptionalcompress the build context using gzip
Default: false
custom_labels
stringoptionaladditional k=v labels
Default: none
label_schema
stringoptionallabel-schema labels
Default: none
email
stringoptionaldocker email
Default: none
no_cache
stringoptionaldo not use cached intermediate containers
Default: none
add_host
stringoptionaladditional host:IP mapping
Default: none
platform
stringoptionalspecify the target platform for the build output, (for example, linux/amd64, linux/arm64, or darwin/amd64).
Default: none