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:
- theopenlane/container-build#v1.1.0:
tags:
- 'theopenlane/theopenlane: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']
Set target platform(s) for build (e.g. linux/arm64). In order to use multiple in a single image build, the buildkite agent must be enabled for mulit-platform builds. See the docker docs for more information.
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