Drone plugins > Drone Buildah
buildah.png

Drone Buildah

by meltwater


Drone plugin uses Buildah to build and publish Docker images to a container registry. It mimics the Docker plugin.

Example

kind: pipeline
name: default

steps:
  - name: publish  
    image: plugins/buildah
    settings:
      repo: docker.io/harness/ci-automation
      registry: docker.io
      password: 
        from_secret: password
      username: 
        from_secret: username
      dockerfile: Dockerfile
      tags: buildahoutput
      layers: true
      s3_local_cache_dir: ./test
      s3_bucket: <s3_bucket_name>
      s3_region: us-east-1
      s3_key: <s3_access_key>
      s3_secret: 
        from_secret: <s3_secret>
      s3_endpoint: s3.amazonaws.com

Properties

  • dry-run

    booleanoptional

    dry run disables docker push

    Default: false

  • dockerfile

    stringoptional

    dockerfile to use

    Default: Dockerfile

  • context

    stringoptional

    build context

    Default: .

  • tags

    stringoptional

    tag used to tage built image, default "latest"

    Default: list

  • tags_auto

    stringoptional

    default build tags

    Default: none

  • tags_suffix

    stringoptional

    suffix to append to build tags

    Default: none

  • args

    stringoptional

    additional build args

    Default: none

  • args-from-env

    stringoptional

    additional build args from env

    Default: none

  • quiet

    booleanoptional

    quiet mode

    Default: false

  • target

    stringoptional

    build target

    Default: none

  • squash

    booleanoptional

    squash image layers

    Default: false

  • pull-image

    booleanoptional

    force pull base image at build time

    Default: false

  • compress

    booleanoptional

    compress image layers

    Default: false

  • repo

    stringoptional

    docker repository used to push image

    Default: none

  • custom-labels

    arrayoptional

    additional k=v labels

    Default: none

  • label-schema

    stringoptional

    label schema to use

    Default: none

  • auto-label

    booleanoptional

    auto label image

    Default: false

  • link

    stringoptional

    link, for example https://example.com/org/repo-name

    Default: none