A plugin for Drone CI to build and label Docker images with minimal effort
latest
- (Dockerfile)
An example configuration of how the plugin should be configured:
pipeline:
build:
image: spritsail/docker-build
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
repo: user/image-name:optional-tag
build_args:
- BUILD_ARG=value
repo
tag to this repo/repo to push to. requiredpath
specify the build directory (or URL). default:.
cwd
cd before calling docker build. optionaldockerfile
override Dockerfile location. default:Dockerfile
buildkit
set false to disable buildkit. default:true
use_cache
override to disable--no-cache
. default:false
no_labels
disable automatic image labelling. default:false
build_args
additional build arguments. optionalarguments
optional extra arguments to pass todocker build
. optionalmake
provides MAKEFLAGS=-j$(nproc) as a build-argumentrm
a flag to immediatelydocker rm
the built image. optionalsquash
squash the built image into one layer. optional