buildcharts generation pipeline to run custom logic before and/or after the build configuration is produced. They are an extensibility point for tasks such as injecting environment secrets, generating additional output files, or performing validation.
What plugins do
Plugins can:- prepare external state before generation
- write secret or debug files under
.buildcharts - patch the generated
docker-bake.hcl - generate additional output files
- perform validation or environment setup
How to enable them
To enable plugins for a particular repository, declare a top-levelplugins list in your build.yml. Each entry should be the name of a registered plugin. When you run buildcharts generate, these plugins execute in sequence and can modify the generated HCL or write additional files.
Example:
Built-in plugins
BuildCharts currently loads built-in plugins only. If you need a new plugin, you must extend the BuildCharts tool and ship it as part of your BuildCharts distribution. Use this page for the plugin model andbuild.yml wiring, then use the plugin pages for behavior and environment details.