Skip to content

theopenlane/container-build-buildkite-plugin

Build status

container-build

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

Example

Modify your pipeline.yml and add:

steps:
  - command: ls
    plugins:
      - theopenlane/container-build#v1.1.0:
          tags:
          - 'theopenlane/theopenlane:latest'

The default settings will:

  1. Build a container with the []tags in the pipeline step
  2. Use the . directory as the context path
  3. Use Dockerfile as the specified file name to build from

Configuration

dockerfile (Optional, string)

Path to the Dockerfile to use. If not specified, the plugin will look for a Dockerfile file at the git repository root

context (Optional, string)

Path to the context directory to use. If not specified, the plugin will use the . directory as the context path

secret-file (Optional, string)

A string like 'id=mysecret,src=secret-file' where is the path in the build

tags (Optional, array of strings)

Tags to use when building the container

labels (Optional, array of strings)

Labels to use when building the container

build-args (Optional, array of strings)

Build arguments to use when building the container

e.g. build-args: ['MEOW=kitty', 'WIZBANG=shazam']

platforms (Optional, string)

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.

push (Optional, boolean)

If true, the plugin will push the container to a registry. Defaults to false

Developing

Requires taskfile - task lint and task test to validate updates to the plugin

About

a buildkite plugin for performing easy docker build and publish steps

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages