Drone plugins > Kaniko
Kaniko
by drone-plugins
This plugin can be used to build and publish images to the Docker registry, using the Kaniko image builder. Unlike the Docker plugin you are not required you to run your agent in privileged mode.
Example
kind: pipeline
name: default
steps:
- name: kaniko
image: plugins/kaniko
settings:
username: kevinbacon
password: pa55word
repo: foo/bar
tags: latest
Properties
registry
stringrequiredauthenticates to this registry
Default: none
username
stringrequiredauthenticates with this username
Default: none
password
stringrequiredauthenticates with this password
Secret recommendedDefault: none
repo
stringrequiredrepository name for the image
Default: none
tags
arrayoptionalrepository tags to apply to the image
Default: none
dockerfile
stringoptionalpath to the Dockerfile
Default: Dockerfile
context
stringoptionalpath to the context directory
Default: git repo root
target
stringoptionalthe build target to use, must be defined in the docker file
Default: none
build_args
arrayoptionalcustom arguments passed to docker build.
Default: none