Skip to main content

anodizer.yml config

Top-level anodizer.yml keys, Tera template helpers, lifecycle hooks, and monorepo configuration.

anodizer.yml config

Top-level configuration keys and the Tera helpers available inside any template string. Tera syntax is GoReleaser-compatible.

Top-level config

KeyStatusNotes
project_name✅ Verifiedanodizer .anodizer.yaml (project_name: anodizer)
dist✅ Verifiedanodizer .anodizer.yaml (dist: ./dist)
env✅ Verifiedanodizer .anodizer.yaml (env: - RELEASE_TYPE=stable)
env_files✅ Verifiedcrates/core/src/config/mod.rs (env_files config field)
variables✅ Verifiedcfgd .anodizer.yaml (variables.repo_url + .description)
template_files[]✅ Verifiedinstall.sh (rendered + attached on every cfgd release)
includes[].from_file✅ Verifiedcrates/core/src/config/mod.rs (IncludeSpec, parsed from includes:)
includes[].from_url🤝 Help wantedNo live config pulls a remote include
before✅ Verifiedcfgd .anodizer.yaml (before.hooks runs cargo fmt --check, clippy, test)
after✅ Verifiedcfgd .anodizer.yaml (after.post echo)
build.hooks.pre✅ Verifiedcfgd .anodizer.yaml (archive hooks.before)
build.hooks.post✅ Verifiedcfgd .anodizer.yaml (archive hooks.after)
snapshot.name_template✅ Verifiedanodizer .anodizer.yaml (snapshot.version_template)
--auto-snapshot✅ Verifiedanodizer ci.yml (snapshot build on every master push)
nightly.*🤝 Help wantedWired; no scheduled nightly workflow yet
metadata.homepage✅ Verifiedcfgd .anodizer.yaml (metadata.homepage: https://github.com/tj-smith47/cfgd)
metadata.license✅ Verifiedcfgd .anodizer.yaml (metadata.license: MIT)
metadata.description✅ Verifiedcfgd .anodizer.yaml (metadata.description)
metadata.maintainers✅ Verifiedcfgd .anodizer.yaml (metadata.maintainers)
metadata.mod_timestamp✅ Verifiedanodizer .anodizer.yaml (metadata.mod_timestamp: "{{ CommitTimestamp }}"; applied as mtime of dist/metadata.json and dist/artifacts.json)

Templates

Tera engine, GoReleaser-compatible syntax. Every template string in the config is rendered.

HelperStatusNotes
{{ .Field }}✅ Verifiedcrates/core/src/template/vars.rs (every {{ .Project }} / .Version / .Tag / .Os / .Arch binding)
{{ .Var.* }}✅ Verifiedcfgd .anodizer.yaml ({{ Var.repo_url }} + {{ Var.description }})
{{ .PrefixedTag }}✅ Verifiedcrates/core/src/template/vars.rs (PrefixedTag binding)
{{ .Artifacts }}✅ Verifiedcfgd .anodizer.yaml ({{ .Artifacts }} inside docker_manifests.image_templates)
{{ .Metadata }}✅ Verifiedcrates/core/src/template/vars.rs (Metadata binding)
{{ .IsMerging }}✅ Verifiedcrates/core/src/template/vars.rs (IsMerging binding)
{{ .IsRelease }}✅ Verifiedcrates/core/src/template/vars.rs (IsRelease binding)
String / path / version / env / filter helpers✅ Verifiedcrates/core/src/template/base_tera.rs (tolower, toupper, dir, base, abs, etc.)
sha*, blake2*, blake3, crc32, md5✅ Verifiedcrates/core/src/template/base_tera.rs (register_hash_fn! macro)
readFile, mustReadFile✅ Verifiedcrates/core/src/template/base_tera.rs (readFile / mustReadFile registrations)
time, .Now.Format✅ Verifiedcrates/core/src/template/base_tera.rs (time function + Now binding)
mdv2escape✅ Verifiedcrates/core/src/template/base_tera.rs (mdv2escape filter)
urlPathEscape✅ Verifiedcrates/core/src/template/base_tera.rs (urlPathEscape filter)
in✅ Verifiedcrates/core/src/template/base_tera.rs (in filter)
reReplaceAll✅ Verifiedcrates/core/src/template/base_tera.rs (reReplaceAll filter)

Monorepo

KeyStatusNotes
monorepo.tag_prefix✅ Verifiedcfgd .anodizer.yaml (tag_template: core-v{{ Version }} / v{{ Version }} / operator-v / csi-v)
monorepo.dir✅ Verifiedcfgd .anodizer.yaml (path: crates/cfgd-core, crates/cfgd, crates/cfgd-operator, crates/cfgd-csi)
cargo_workspace detection✅ Verifiedcfgd .anodizer.yaml (4 workspaces: cfgd-core, cfgd, cfgd-operator, cfgd-csi)
depends_on✅ Verifiedcfgd .anodizer.yaml (depends_on: [cfgd-core] on the three downstream crates)
git.tag_sort✅ Verifiedcfgd .anodizer.yaml (git.tag_sort: "-version:refname")
git.prerelease_suffix✅ Verifiedcfgd .anodizer.yaml (git.prerelease_suffix: "-")
git.ignore_tags✅ Verifiedcfgd .anodizer.yaml (git.ignore_tags: ["nightly"])
partial.by✅ Verifiedcfgd .anodizer.yaml (partial.by: goos at file end)