Skip to main content
buildcharts generate is the core step that turns repository metadata into an executable Docker Buildx Bake plan.

What it reads

During generation, BuildCharts reads:
  • build.yml
  • charts/buildcharts/Chart.yaml
  • charts/buildcharts/Chart.lock if it exists

What it validates

Before writing output, BuildCharts validates:
  • There is exactly one build target
  • Every target type matches a chart alias from Chart.yaml
When Chart.lock exists and --ignore-lock is not set, buildcharts generate checks:
  • Missing lock entries
  • Version mismatches between Chart.yaml and Chart.lock
  • Orphaned lock entries
  • Registry digest mismatches during pull
If the lock file is out of sync, BuildCharts stops and tells you to refresh it. See Lock files.

What it does

  1. Removes the previous .buildcharts folder.
  2. Pulls chart artifacts into .buildcharts.
  3. Runs configured plugins.
  4. Writes .buildcharts/docker-bake.hcl.
build.yml currently targets Docker Bake HCL through a dedicated generator. Since the interface is intentionally minimal, future work may add more generators. You can also clone the project and build your own.

Usage

The generated Bake file lives here:
Run it with:
Last modified on July 3, 2026