This Buildkite plugin will build a container, today supporting Dockerfiles; you pass the plugin a context path and a tag or a set of tags
Modify your pipeline.yml
and add:
steps:
- command: ls
plugins:
- datumforge/container-build#v1.0.0:
tags:
- 'datumforgeg/datum:latest'
The default settings will:
- Build a container with the
[]tags
in the pipeline step - Use the
.
directory as the context path - Use Dockerfile as the specified file name to build from
Path to the Dockerfile to use. If not specified, the plugin will look for a Dockerfile
file at the git repository root
Path to the context directory to use. If not specified, the plugin will use the .
directory as the context path
A string like 'id=mysecret,src=secret-file' where is the path in the build
Tags to use when building the container
Labels to use when building the container
Build arguments to use when building the container
e.g. build-args: ['MEOW=kitty', 'WIZBANG=shazam']
If true
, the plugin will push the container to a registry. Defaults to false
Requires taskfile - task lint
and task test
to validate updates to the plugin