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
booleanoptionaldry run disables docker push
Default: false
dockerfile
stringoptionaldockerfile to use
Default: Dockerfile
context
stringoptionalbuild context
Default: .
tags
stringoptionaltag used to tage built image, default "latest"
Default: list
tags_auto
stringoptionaldefault build tags
Default: none
tags_suffix
stringoptionalsuffix to append to build tags
Default: none
args
stringoptionaladditional build args
Default: none
args-from-env
stringoptionaladditional build args from env
Default: none
quiet
booleanoptionalquiet mode
Default: false
target
stringoptionalbuild target
Default: none
squash
booleanoptionalsquash image layers
Default: false
pull-image
booleanoptionalforce pull base image at build time
Default: false
compress
booleanoptionalcompress image layers
Default: false
repo
stringoptionaldocker repository used to push image
Default: none
custom-labels
arrayoptionaladditional k=v labels
Default: none
label-schema
stringoptionallabel schema to use
Default: none
auto-label
booleanoptionalauto label image
Default: false
link
stringoptionallink, for example https://example.com/org/repo-name
Default: none