buildkite-plugins / docker-compose-buildkite-plugin

🐳⚡️ Run build scripts, and build + push images, w/ Docker Compose
MIT License
171 stars 138 forks source link

Add buildkite inline cache env #428

Closed jquick closed 6 months ago

jquick commented 6 months ago

It's possible to set this via the args config property. However, when trying to define it as global default with

BUILDKITE_PLUGIN_DOCKER_COMPOSE_ARGS_0="BUILDKIT_INLINE_CACHE=1"

you can end up accidentally overwriting args provided in a pipeline.yml.

Providing a separate config property allows you to set it via an env var while avoiding overwriting any provided args.

Use Case

We build a lot of images and usually have our users setup their own pipelines. As owners we want to ensure that every image is built with inline cache.