Skip to main content
Plugins hook into the 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-level plugins 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:
plugins:
  - NuGetAuthenticate@v1
  - TestcontainersDinD@v1
Combine multiple plugins by listing them one per line. Plugins are executed in the order they appear in the list.

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 and build.yml wiring, then use the plugin pages for behavior and environment details.

Example

version: v1beta

plugins:
  - TestcontainersDinD@v1

variables:
  - VERSION
  - COMMIT

targets:
  src/dotnet-testcontainers.csproj:
    type: [build, test]
    with:
      base: mcr.microsoft.com/dotnet/sdk:10.0
Last modified on March 15, 2026