buildcharts init scaffolds the files that BuildCharts needs to generate a Bake plan.
What scaffolding means in BuildCharts
Scaffolding is the step where BuildCharts inspects a repository, infers a reasonable starting build model, and writes the metadata files for you.
At a high level, the goal is:
- find recognizable project files
- infer which build stage types the repository needs
- generate a starter
build.yml
- generate a matching
charts/buildcharts/Chart.yaml
This is automatic stage wiring. Instead of starting from an empty config, BuildCharts inspects the repository shape and scaffolds the most likely target types for each project.
Currently only supports .NET applications.
The scaffolded build.yml includes:
VERSION and COMMIT variables
- one
build target for the solution
- additional
test, nuget, or docker targets when matching projects are found
BuildCharts does more than detect that a repository is .NET. It also maps each discovered file to an appropriate stage type automatically.
Typical flow
buildcharts init
buildcharts update
buildcharts generate
docker buildx bake --file .buildcharts/docker-bake.hcl
Related pages