Drone plugins > Kaniko
kaniko.svg

Kaniko

by banzaicloud


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: banzaicloud/drone-kaniko
  settings:
    username: kevinbacon
    password: pa55word
    repo: foo/bar
    tags: latest

Properties

  • registry

    stringrequired

    authenticates to this registry

    Default: none

  • username

    stringrequired

    authenticates with this username

    Default: none

  • password

    stringrequired

    authenticates with this password

    Secret recommended

    Default: none

  • repo

    stringrequired

    repository name for the image

    Default: none

  • tags

    arrayoptional

    repository tags to apply to the image

    Default: none

  • dockerfile

    stringoptional

    path to the Dockerfile

    Default: Dockerfile

  • context

    stringoptional

    path to the context directory

    Default: git repo root

  • target

    stringoptional

    the build target to use, must be defined in the docker file

    Default: none

  • build_args

    arrayoptional

    custom arguments passed to docker build.

    Default: none