Configuration Reference
Complete configuration file reference
Anodizer uses .anodizer.yaml (or .anodizer.toml) in your project root.
Top-Level Fields
| Field | Type | Default | Description |
|---|---|---|---|
after | object | — | Hooks run after the release pipeline completes SUCCESSFULLY. A failed run never reaches them — route failure handling through on_error:, and teardown that must happen either way through always:.Use --skip=after to bypass — one token covers this block and every crates[].after: block.after: hooks: - cmd: ./notify-release-succeeded.sh |
always | object | — | Hooks run LAST on every terminal path — the release's finally.Ordering: on success they run after after:; on failure they run after on_error:. They also fire on the one exit neither of those reaches — a before: hook that failed before the pipeline started. Use them for teardown that has to happen either way: removing a staging directory, releasing a lock, stopping a sidecar container.They fire once per anodizer release / anodizer build invocation, pairing 1:1 with before: — including on each --split shard and on --merge, which are separate invocations that each run before: of their own.Use --skip=always to bypass. Skipping the finally lane is supported on purpose — --skip=before already suppresses the lane it pairs with — but the consequence is that teardown does not run, so anything the run staged stays staged.The run's outcome is exposed as template vars ( {{ .Success }}, {{ .Error }}) and as ANODIZER_* env vars (ANODIZER_SUCCESS, ANODIZER_ERROR, ANODIZER_VERSION, ANODIZER_TAG), so a hook can branch on the outcome and read the error text without interpolating untrusted text into the shell command. ANODIZER_ERROR is empty on success.A failing always: hook never masks a release failure: on the failure path it is logged as a warning and the original pipeline error is still what the run exits with. On the success path there is no error to mask, so the hook's own failure fails the run — the same contract after: has.always: hooks: - cmd: ./teardown-staging.sh |
announce | object | — | Announcement configuration (Slack, Discord, email, etc.). |
appimages | list of object | [] | AppImage configurations. Each entry bundles a built Linux binary plus its desktop integration into a single self-contained .AppImage via linuxdeploy. |
artifactories | list of object | — | Artifactory upload configurations. |
attestations | object | — | SLSA build-provenance / attestation configuration for binaries and archives. In the default subjects mode, anodizer writes a subjects manifest for actions/attest-build-provenance; in emit mode it generates and signs a self-contained in-toto SLSA provenance statement. When omitted (or enabled: false), the attestation stage is a no-op. |
aur_sources | list of object | — | AUR source package publishing configurations (source-only PKGBUILD; no -bin package). |
before | object | — | Hooks run before the release pipeline starts. Use --skip=before to bypass — one token covers this block and every crates[].before: block. |
before_publish | object | — | Hooks run after build/archive/sign/sbom/checksum complete but immediately before the publish phase dispatches any publisher. Use cases: smoke-test artifacts against the staged dist tree, run external validators (antivirus, vulnerability scanners), stage external state, or abort the release before any publisher writes to a registry. A non-zero exit code from any hook aborts the release before publish runs. Hooks fire in declared order. Use --skip=before-publish to bypass. |
binary_signs | list of object | [] | Binary-specific signing configs (same shape as signs but only for binary artifacts). The artifacts field on each entry is constrained at parse time to binary / none (or omitted) — a broader filter on binary_signs would silently match nothing because the loop only iterates Binary artifacts. Constraint lives in deserialize_binary_signs.The detached signature and certificate produced for each binary upload as release assets alongside the archives. The raw binary's own file name is the same under every target, so the asset name is derived from the crate's archives: CONFIG instead — unique per (crate, target, binary), and identical whether anodizer build or anodizer release --publish-only produced it. The base is the primary archives: entry's name_template rendered for the target (app-1.2.3-linux-amd64.sig), where the primary entry is the first in config order whose ids: / binaries: filters take this binary. Three cases resolve differently: an entry that packs several binaries on the target, and a target no entry covers at all, both take the whole triple {{ Binary }}-{{ Version }}-{{ Target }} (one archive carries the whole group under a single name, and Os/Arch render identically for a gnu and a musl build); an entry whose resolved formats include binary takes that uploaded executable's own name; and a lipo-merged universal binary, whose darwin-universal target no build entry names, takes the entry's template rendered with the binary's own name.An entry's if: is not evaluated for this, so a gate that reads the environment cannot name one binary's signature two ways. binary_signs[].asset_name_template: overrides every case. |
changelog | object | — | Changelog generation configuration. |
cloudsmiths | list of object | — | Cloudsmith publisher configurations. |
crates | list of object | [] | List of crates in this project. |
defaults | object | — | Workspace-level defaults that fill what each crate, and a few top-level blocks, leave unset. The defaults section lists where each key applies. |
dist | string | ./dist | Output directory for build artifacts (default: ./dist). |
docker_signs | list of object | — | Docker image signing configurations. |
dockerhub | list of object | — | Docker Hub description sync configurations. |
env | list of string | — | Environment variables available to all template expressions. List of KEY=VALUE strings: env: ["MY_VAR=hello", "DEPLOY_ENV=staging"]. Order is preserved so chained env applications (sign + sbom + notarize) see entries in declared order. Values are rendered through the template engine before being set, so expressions like {{ Tag }} or {{ Date }} are expanded. |
env_files | object | list of string | — | Environment file configuration. Accepts either: - A list of .env file paths: [".env", ".release.env"]. A GITHUB_TOKEN, GITLAB_TOKEN or GITEA_TOKEN line in one of them is read as that forge's token when its variable is unset or blank. - A struct with token file paths: { github_token: "~/.config/goreleaser/github_token" } |
force_token | "github" | "gitlab" | "gitea" | — | Force a specific token type for authentication: github, gitlab or gitea. release.provider wins over it; when set, it wins over the ANODIZER_FORCE_TOKEN and GORELEASER_FORCE_TOKEN environment variables and over detection from GITLAB_TOKEN / GITEA_TOKEN. The full order is on release.provider. |
gemfury | list of object | — | Gemfury (fury.io) deb/rpm/apk publishing configurations. Mirrors The gemfury: block. The legacy spelling furies: is accepted via serde alias; a one-time deprecation warning is emitted by warn_on_legacy_furies_alias. |
git | object | — | Git-level tag discovery and sorting settings. |
gitea_urls | object | — | Custom Gitea API/download URLs for self-hosted Gitea installations. |
github_urls | object | — | Custom GitHub API/upload/download URLs for GitHub Enterprise installations. |
gitlab_urls | object | — | Custom GitLab API/download URLs for self-hosted GitLab installations. |
homebrew_casks | list of object | — | Top-level Homebrew Cask configurations. homebrew_casks is a top-level array with its own repository, commit_author, directory, skip_upload, hooks, dependencies, conflicts, completions, manpages, structured uninstall/zap, etc. |
homebrew_cores | list of object | — | homebrew-core formula-bump configurations. One entry per formula. Bumps an existing formula in Homebrew/homebrew-core (or a formula repository override) via the GitHub API and opens a pull request. The homebrew_cores: block. |
includes | list of (object | string) | — | Additional config files to merge into this config. Supports plain string paths, from_file: for structured file paths, and from_url: for fetching configs from URLs with optional headers. |
install_scripts | list of object | [] | curl | sh installer-script configurations. Each entry emits a deterministic POSIX install.sh release asset that detects the host OS + arch, downloads and sha256-verifies the matching archive, and installs the binary. |
makeselfs | list of object | [] | Makeself self-extracting archive configurations. |
mcp | object | per field | MCP (Model Context Protocol) server registry publishing configuration. When name is empty (the default), the publisher is skipped. The mcp: publisher block. |
metadata | object | — | Project metadata configuration (applied to metadata.json output files). |
milestones | list of object | — | Milestone closing configurations. |
monorepo | object | — | Monorepo configuration. When configured, tag discovery filters by tag_prefix and the working directory is scoped to dir. |
nightly | object | — | Nightly release configuration. |
notarize | object | — | macOS code signing and notarization configuration. |
npms | list of object | — | NPM package registry publishing configurations. One entry per published package. In the default optional-deps mode anodizer emits npm's native per-platform packages (biome / git-cliff pattern); in postinstall mode it emits a download shim (the npms: parity). |
on_error | object | — | Hooks run when the release pipeline fails at ANY stage (build, sign, publish, ...). The pipeline holds on failure: published state is left exactly where the failed run put it, so {{ .RolledBack }} is always false. Recover by re-running the identical command (publishers reconcile against what already shipped and skip it), or withdraw the release deliberately with anodizer tag rollback.Notification / cleanup hooks: a hook's own failure is logged as a warning and never masks the pipeline error. The failure context is exposed both as template vars ( {{ .Error }}, {{ .RolledBack }}) and as ANODIZER_* env vars (ANODIZER_ERROR, ANODIZER_ROLLED_BACK, ANODIZER_VERSION, ANODIZER_TAG) so hooks can consume the error text without shell interpolation.Use --skip=on-error to bypass — one token covers this block and every publish.on_error: block.on_error: hooks: - cmd: ./notify-release-failed.sh |
partial | object | — | Partial/split build configuration for fan-out CI pipelines. |
preflight | object | {"strict":false} | Pre-publish preflight tuning. preflight.strict: true promotes indeterminate probe outcomes (5xx / rate-limit / network failure / undeterminable permissions) from warnings to hard blockers. The probes themselves always run read-only before any publisher mutates a registry; the default (lenient) behavior needs no config. |
project_name | string | — | Human-readable project name used in templates and release titles. |
publishers | list of object | — | Generic artifact publisher configurations. |
pypis | list of object | — | PyPI publishing configurations. One entry per published project. Emits native py3-none-<platform> binary wheels from the built binaries (plus an optional maturin sdist) and uploads them via PyPI's legacy (twine-protocol) upload API. The pypis: block. |
release | object | — | GitHub release configuration shared by all crates. |
report_sizes | bool | — | When true, log artifact file sizes after building. |
retry | object | — | Top-level retry configuration applied to network-bound operations (announcers, git providers, HTTP uploads, docker pipes). When omitted, the defaults apply: 10 attempts, a 10s first delay, a 5m cap on each delay and a 15-minute max_elapsed budget for each publisher run. |
sboms | list of object | [] | Software bill of materials (SBOM) generation configurations. |
schemastore | object | per field | SchemaStore publisher. Registers the project's JSON Schemas on SchemaStore at release time. When schemas is empty (the default), the publisher is skipped. The schemastore: publisher block. |
signs | list of object | [] | Signing configurations for binaries, archives, and checksums. |
snapshot | object | — | Snapshot release configuration (local/non-tag builds). |
source | object | — | Source archive configuration. |
srpms | object | — | Source RPM configuration. Renamed from srpm: (singular) for spelling parity with Defaults.srpms and the rest of the plural-name packaging fields. The srpm: spelling is still accepted via serde alias for back-compat. |
tag | object | — | Automatic semantic version tagging configuration. |
template_files | list of object | — | Template files to render and include as release artifacts. File contents are processed through the template engine. |
uploads | list of object | — | Generic HTTP upload configurations. |
upx | list of object | [] | UPX binary compression configurations. |
variables | map | — | Custom template variables accessible as {{ Var.<key> }} in templates. Provides a way to define reusable values, especially useful with config includes.Variables render once each, in alphabetical key order on every host, so a value that references another variable ( b: "{{ Var.a }}_v2") resolves only when the referenced key sorts earlier. A reference to a key that sorts later logs a warning. |
verify_release | object | per field | Opt-in post-release verification gate. Runs LAST (after the release is created and every publisher has run) and REPORTS post-publish defects — missing assets, failed install smoke-tests, glibc-ceiling violations. Because it runs after the irreversible publish, a failure exits non-zero to flag CI but never undoes the release. Off unless verify_release.enabled: true. |
version | integer | — | Schema version. Currently supports 1 (implicit default) and 2. |
version_files | list of (object | string) | — | Repo-committed files that embed the release version outside Cargo.toml (e.g. a Helm Chart.yaml, an install doc, a README badge), given as repo-root-relative path strings. At tag time each listed file has its occurrences of the old version rewritten to the new version — both the bare (0.1.0) and v-prefixed (v0.1.0) forms, word-boundary anchored — and is staged into the same bump commit as Cargo.toml / Cargo.lock, so these files never drift from the manifest.An entry may instead be a path + match mapping, scoping the rewrite to the occurrences the match regex selects ({version} stands for the version being rewritten) so two crates can share one file.version_files: - charts/cfgd/Chart.yaml - docs/installation.md - path: chart/cfgd/values.yaml match: 'operator:\s+image:.*:v{version}' |
workspaces | list of object | — | Independent workspace roots in a monorepo. |
after
A lifecycle hook block: before:, after:, on_error:, always:, or before_publish:. Each block carries a list of hook commands that run around the entire pipeline (not individual stages); which block a list sits under decides when it fires.
The key is hooks: in every block. The older post: spelling is still accepted, so after: { post: [...] } keeps working, with a deprecation warning. When a block sets a non-empty hooks: list and post:, the hooks: list runs and post: is ignored; an empty hooks: [] beside a non-empty post: list runs the post: commands.
| Field | Type | Default | Description |
|---|---|---|---|
hooks | list of (object | string) | — | Commands to run when the block fires. The older post: key is read as this list. |
post | list of (object | string) | — | Deprecated spelling of hooks: (anodizer before v0.4). Its commands run as the hooks: list, and it is ignored when hooks: is also set and non-empty. |
always
A lifecycle hook block: before:, after:, on_error:, always:, or before_publish:. Each block carries a list of hook commands that run around the entire pipeline (not individual stages); which block a list sits under decides when it fires.
The key is hooks: in every block. The older post: spelling is still accepted, so after: { post: [...] } keeps working, with a deprecation warning. When a block sets a non-empty hooks: list and post:, the hooks: list runs and post: is ignored; an empty hooks: [] beside a non-empty post: list runs the post: commands.
| Field | Type | Default | Description |
|---|---|---|---|
hooks | list of (object | string) | — | Commands to run when the block fires. The older post: key is read as this list. |
post | list of (object | string) | — | Deprecated spelling of hooks: (anodizer before v0.4). Its commands run as the hooks: list, and it is ignored when hooks: is also set and non-empty. |
announce
Announce-stage integrations.
Message bodies are secret-redacted before send: known secret env values are masked (a real token becomes $NAME). Redaction is on by default; anodizer notify --allow-secrets opts a single send out for a trusted private channel, while anodizer's own log output stays redacted regardless.
| Field | Type | Default | Description |
|---|---|---|---|
bluesky | object | — | Bluesky announcement configuration. |
deadline | string | — | Overall wall-clock deadline for the announce stage (e.g. "90s", "2m"). Optional; defaults to 90s. A value below one second is raised to one second.Announcers run concurrently; any still running when this deadline elapses is abandoned with a warning. This bounds the stage so unreachable channels cannot add up to a hang that trips the pipeline timeout after the publishers have already published. Raise it only if a slow-but-reachable channel legitimately needs longer. A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
discord | object | — | Discord announcement configuration. |
discourse | object | — | Discourse announcement configuration. |
email | object | — | Email announcement configuration. accepts the historical smtp: key as an alias because the field was renamed smtp: -> email: in v1.21+ and kept the alias for migration. Keeping the alias avoids forcing a re-yaml of legacy configs. |
gate_on | "required_publishers" | "all_publishers" | "none" | required_publishers | When the announce stage runs, judged from the results of the publishers and blob uploads earlier in the same run: required_publishers (default) skips it when a required: true publisher failed or its rollback failed; all_publishers also skips it when any other publisher failed, its rollback failed, was skipped after an earlier required failure, or was held back by the verify-release gate; none always runs it. A publisher skipped for another reason, or waiting on moderation, does not stop announce. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the entire announce stage is skipped. Render failure hard-errors. skip: is the opposite test: it skips on a truthy render. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
linkedin | object | — | LinkedIn announcement configuration. |
mastodon | object | — | Mastodon announcement configuration. |
mattermost | object | — | Mattermost announcement configuration. |
opencollective | object | — | OpenCollective announcement configuration. |
reddit | object | — | Reddit announcement configuration. |
skip | 0 | 1 | bool | string | — | Template-conditional skip: skip the entire announce stage when the value is, or a template renders, true or 1 (any letter case). |
slack | object | — | Slack announcement configuration. |
teams | object | — | Microsoft Teams announcement configuration. |
telegram | object | — | Telegram announcement configuration. |
twitter | object | — | Twitter/X announcement configuration. |
webhook | object | — | Generic webhook announcement configuration. |
appimages
AppImage packaging configuration.
Drives the AppImage stage, which bundles a built Linux binary plus its desktop integration (a .desktop entry + icon) into a single self-contained, runnable .AppImage file via linuxdeploy's appimage output plugin. One .AppImage is produced per matching Linux target so a multi-arch build yields distinct, non-colliding outputs.
YAML:
appimages:
- id: helix
ids: [helix-bin]
desktop: contrib/Helix.desktop
icon: contrib/helix.png
appdir_extra:
- src: runtime/
dst: usr/lib/helix/runtime
update_information: "gh-releases-zsync|helix-editor|helix|latest|helix-*.AppImage.zsync"
runtime_harvest:
command: "{{ ArtifactPath }} --populate-runtime {{ HarvestDir }}"
dir: runtime/| Field | Type | Default | Description |
|---|---|---|---|
appdir_extra | list of object | — | Extra files / directories copied into the AppDir before linuxdeploy runs (e.g. a harvested runtime/ tree). Each entry's dst is interpreted relative to the AppDir root. |
arch | list of string | — | Target architecture filter. When omitted, every architecture in the build matrix produces its own .AppImage. |
desktop | string | — | Path to the .desktop entry file (template). Required — linuxdeploy will not assemble an AppImage without a desktop file. |
extra_args | list of string | — | Extra arguments appended to the linuxdeploy command line. |
filename | string | — | Output filename template (default includes project, version, os, arch). The .AppImage extension is appended automatically when absent. |
icon | string | — | Path to the application icon (template). Required. |
id | string | — | Unique identifier for this AppImage config (default: "default"). |
ids | list of string | — | Build IDs filter: only bundle binaries whose id is in this list. When omitted, every Linux binary in the build matrix is eligible. |
name | string | — | Application name passed to linuxdeploy via the APP env var and used as the AppDir basename. Defaults to the project name. |
os | list of string | — | Target OS filter (default: ["linux"]). AppImage is a Linux-only format. |
runtime_harvest | object | — | Runtime-asset harvest hook: run the freshly-built binary ONCE on the host to populate a directory, then bundle that directory into the AppDir. The harvested data is architecture-independent (grammars, themes, queries), so it is produced once on the host-native binary and reused for every target's AppImage. |
skip | 0 | 1 | bool | string | — | Skip this config. Accepts bool or template string. |
update_information | string | — | zsync delta-update metadata embedded in the AppImage, passed to linuxdeploy via the UPDATE_INFORMATION env var. When omitted, the AppImage carries no update information and UPDATE_INFORMATION is left unset (matching linuxdeploy's default). |
artifactories
Artifactory upload configuration. Uploads artifacts to JFrog Artifactory repositories.
| Field | Type | Default | Description |
|---|---|---|---|
checksum | bool | — | Include checksums in uploaded artifacts. |
checksum_header | string | — | Header name used for checksum verification (e.g. X-Checksum-Sha256). |
client_x509_cert | string | — | Path to client X.509 certificate for mTLS authentication. |
client_x509_key | string | — | Path to client X.509 private key for mTLS authentication. |
custom_artifact_name | bool | — | Use custom artifact naming in place of the default naming. |
custom_headers | map | — | Custom HTTP headers sent with each upload request. |
deb_architecture | string | — | Override the Debian architecture for .deb uploads (;deb.architecture=). When unset (the default), the architecture is derived from each artifact's build target (x86_64 → amd64, aarch64 → arm64, armv7 → armhf, i686 → i386, …), so it never needs to be set by hand. Set this only to force a value for an artifact whose target can't be mapped. Ignored for non-.deb artifacts. |
deb_components | list of string | — | Debian repository components for .deb uploads, written into the ;deb.component= matrix param. Defaults to ["main"] when unset. Multiple components are emitted comma-separated. Ignored for non-.deb artifacts. |
deb_distributions | list of string | — | Debian repository distributions for .deb uploads, written into the Artifactory ;deb.distribution= upload matrix param so apt can index the package. Defaults to ["stable"] when unset. A multi-element list is emitted as Artifactory's comma-separated form (deb.distribution=bookworm,bullseye), publishing the same .deb into several distributions at once. Ignored for non-.deb artifacts. |
exclude | list of string | — | Glob patterns matched against each artifact's file name; anodizer drops any artifact whose name matches at least one glob from THIS Artifactory target only. Use it to keep heavy sidecars (checksums, signatures, SBOMs) off a given repository while archives still upload. Composes with ids: and exts: (all filters apply). Unset or empty keeps everything.artifactories: - target: "https://repo.example.com/{{ .ProjectName }}/{{ .Tag }}/{{ .ArtifactName }}" exclude: [".sha256", ".sig", "*.cdx.json"] |
extra_files | list of (object | string) | — | Extra files to upload alongside build artifacts. |
extra_files_only | bool | — | When true, upload only extra_files (skip normal artifacts). |
exts | list of string | — | File extension filter: only upload artifacts matching these extensions. |
ids | list of string | — | Build IDs filter: only upload artifacts from builds whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the artifactory publisher is skipped. Render failure hard-errors. The artifactories[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
meta | bool | — | Include dist/metadata.json in uploaded artifacts. The sibling dist/artifacts.json manifest is never uploaded. |
method | string | — | HTTP method to use for uploads (default: "PUT"). |
mode | string | — | Upload mode: "archive" (upload archives) or "binary" (upload binaries). |
name | string | — | Human-readable name for this publisher (used in logs). |
overwrite | bool | — | Re-upload an artifact even when an identical one already exists at the target path (default: false).With the default, a re-run that finds the same version's artifact already uploaded with a matching SHA-256 records an idempotent SKIP and does not PUT it again, so re-running a partially-failed release is safe. A path that already holds a different artifact for the same version still hard-errors (immutable-version drift) unless overwrite is set. With overwrite: true, every artifact is PUT unconditionally (Artifactory replaces the stored copy), restoring blind-overwrite behaviour for repos configured to allow it. |
password | string | — | Artifactory password or API key (or env var reference). |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
signature | bool | — | Include signatures in uploaded artifacts. |
skip | 0 | 1 | bool | string | — | Template-conditional skip: skip this publisher when the value is, or a template renders, true or 1 (any letter case). |
target | string | — | Target URL template for uploads (supports template variables). |
trusted_certificates | string | — | PEM-encoded trusted CA certificates for TLS verification. Appended to the system certificate pool. |
username | string | — | Artifactory username for authentication. |
attestations
SLSA build-provenance / attestation configuration for binaries and archives.
Two modes select how anodizer participates in attestation:
mode: subjects(the default) writes a subjects manifest (dist/attestation-subjects.json) thatanodizer-actionpasses to GitHub'sactions/attest-build-provenance. In this mode anodizer creates no GitHub-trusted attestation itself; the Action creates it with its OIDC identity. fd, biome and gping attest this way.mode: emitgenerates a self-contained in-toto v1 statement carrying an SLSA provenance v1 predicate over the selected artifacts, writes it as a release asset (attestation.intoto.jsonl), and lets thesigns:configuration sign it with a key. This is for users who cannot run the Action.
YAML:
attestations:
enabled: true
mode: subjects # or: emit ; default = subjects
artifacts: [archive, binary, checksum]| Field | Type | Default | Description |
|---|---|---|---|
artifacts | list of ("archive" | "binary" | "checksum" | "file" | "flatpak" | "install_script" | "installer" | "package" | "sbom" | "source") | — | Which produced-artifact kinds to attest. Each entry selects a kind; the concrete subjects (file names and sha256) come from the artifacts anodizer produced. The kinds are archive, binary, checksum, package, source, sbom, installer, flatpak, install_script and file.When omitted, every artifact uploaded to the release is attested except signatures and certificates, which are themselves signatures over other artifacts. That is the same set all ten kinds select together. |
enabled | bool | false | Enable attestation. When false (the default), the stage is a no-op. |
mode | "emit" | "subjects" | — | Participation mode: subjects (default) writes a manifest for actions/attest-build-provenance; emit generates and signs an in-toto SLSA provenance statement as a release asset. |
skip | 0 | 1 | bool | string | — | Skip the attestation stage. Accepts a bool or a template string. |
aur_sources
| Field | Type | Default | Description |
|---|---|---|---|
amd64_variant | "v1" | "v2" | "v3" | "v4" | — | x86_64 micro-architecture variant — v1 (baseline), v2, v3 (AVX2), or v4. Constrained to a typed enum because AUR source pkgs build from the upstream tarball (no binary artifacts to filter), so the value's only role is as the Amd64 template var consumed by prepare: / build: / package: script bodies — typos must fail at parse time and never silently render an invalid string into the PKGBUILD. When unset, defaults to v1 at template-render time. |
arches | list of string | — | Pacman architectures for arch=(). Defaults to the architectures of the Linux build targets, x86_64 when there are none. |
backup | list of string | — | Backup files to preserve on upgrade. |
build | string | — | Custom build() function body for PKGBUILD. |
commit_author | object | — | Commit author with optional signing. |
commit_msg_template | string | — | Custom commit message template. |
conflicts | list of string | — | Packages this PKGBUILD conflicts with. |
contributors | list of string | — | Contributors listed in PKGBUILD comments. |
depends | list of string | — | Runtime dependencies. |
description | string | — | Short description of the package. |
directory | string | — | Subdirectory in the git repo for committed files. |
git_ssh_command | string | — | Custom SSH command for git operations. Takes precedence over private_key when both are set. |
git_url | string | — | AUR SSH git URL override. Defaults to ssh://aur@aur.archlinux.org/<package>.git, derived from the resolved package name; set this only for a non-standard endpoint. |
homepage | string | — | Project homepage URL. |
ids | list of string | — | Has no effect on a source package: the PKGBUILD builds from the one source archive the release carries and reads no build artifacts. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the AUR source config is skipped. Render failure hard-errors. The aur_sources[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
install | string | — | Content for a .install file (post-install/pre-remove scripts). |
license | string | — | SPDX license identifier. |
maintainers | list of string | — | PKGBUILD maintainer entries. |
makedepends | list of string | — | Build-time dependencies (source packages need these). |
name | string | — | Override the package name (default: crate name, no -bin suffix). |
optdepends | list of string | — | Optional dependencies. |
package | string | — | Custom package() function body for PKGBUILD. |
prepare | string | — | Custom prepare() function body for PKGBUILD. |
private_key | string | — | The SSH private key itself, as its PEM or OpenSSH text. Supports templates, so a key is usually read from the environment: private_key: "{{ .Env.AUR_SSH_KEY }}". Written to a temporary file with mode 0600 for the push. |
provides | list of string | — | Packages this PKGBUILD provides. |
rel | string | — | Package release number (default: "1"). |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
skip | 0 | 1 | bool | string | — | Skip this config. Accepts the legacy disable: spelling via serde alias for back-compat. |
skip_upload | 0 | 1 | bool | string | — | Skip publishing. "true" always skips; "auto" skips for prereleases. |
url_template | string | — | Download URL of the source archive (template). Defaults to the release asset URL of the archive the source: stage produced; {{ .ArtifactName }} is that archive's file name. |
before
A lifecycle hook block: before:, after:, on_error:, always:, or before_publish:. Each block carries a list of hook commands that run around the entire pipeline (not individual stages); which block a list sits under decides when it fires.
The key is hooks: in every block. The older post: spelling is still accepted, so after: { post: [...] } keeps working, with a deprecation warning. When a block sets a non-empty hooks: list and post:, the hooks: list runs and post: is ignored; an empty hooks: [] beside a non-empty post: list runs the post: commands.
| Field | Type | Default | Description |
|---|---|---|---|
hooks | list of (object | string) | — | Commands to run when the block fires. The older post: key is read as this list. |
post | list of (object | string) | — | Deprecated spelling of hooks: (anodizer before v0.4). Its commands run as the hooks: list, and it is ignored when hooks: is also set and non-empty. |
before_publish
A lifecycle hook block: before:, after:, on_error:, always:, or before_publish:. Each block carries a list of hook commands that run around the entire pipeline (not individual stages); which block a list sits under decides when it fires.
The key is hooks: in every block. The older post: spelling is still accepted, so after: { post: [...] } keeps working, with a deprecation warning. When a block sets a non-empty hooks: list and post:, the hooks: list runs and post: is ignored; an empty hooks: [] beside a non-empty post: list runs the post: commands.
| Field | Type | Default | Description |
|---|---|---|---|
hooks | list of (object | string) | — | Commands to run when the block fires. The older post: key is read as this list. |
post | list of (object | string) | — | Deprecated spelling of hooks: (anodizer before v0.4). Its commands run as the hooks: list, and it is ignored when hooks: is also set and non-empty. |
binary_signs
| Field | Type | Default | Description |
|---|---|---|---|
args | list of string | — | Arguments passed to the signing command (supports templates with ${artifact} and ${signature}). |
artifacts | string | — | Artifact types to sign: "none" (default), "all", "any", "archive", "binary", "checksum", "package", "installer", "diskimage", "macos_package", "snap", "source", "sbom" or "windows". none skips only this entry; a failing sibling entry still fails the stage. |
asset_name_template | string | — | binary_signs: only — override the release-asset name a binary signature uploads under.Renders the asset's BASE name; the suffix the signature: / certificate: template appended to the binary's own file name still carries over, so one template names both assets (app-1.0.0-linux-amd64 → app-1.0.0-linux-amd64.sig and app-1.0.0-linux-amd64.pem). Rendered in the same per-target scope an archive name_template renders under (Os, Arch, Target, the micro-architecture variants, CrateName, Binary).binary_signs: - artifacts: binary asset_name_template: "{{ Binary }}-{{ Version }}-{{ Target }}"Unset, the name is derived from the crate's archives: config — see the signing docs. |
authenticode | object | — | Authenticode (Windows PE/MSI) signing backend. When set, this sign config signs Windows artifacts in place via osslsigncode (Linux/cross) or signtool (Windows), and no detached cosign/gpg signature is written. The signing command, argv, timestamp URL, and artifact selector are all derived; supply only the cert (a secret). |
certificate | string | — | Certificate file to embed in the signature (Cosign bundle signing). |
cmd | string | — | Signing command to invoke (default: "cosign" or "gpg"). |
env | list of string | — | Environment variables passed to the signing command. |
id | string | — | Unique identifier for this sign config. |
ids | list of string | — | Build IDs filter: only sign artifacts from builds whose id is in this list. |
if | string | — | Template-conditional: skip this sign config when the gate renders false, 0, no or empty (any letter case). An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
output | 0 | 1 | bool | string | — | Capture and log stdout/stderr of the signing command. Accepts bool or template string (e.g., "{{ IsSnapshot }}"). |
signature | string | — | Signature output filename template (supports templates). |
stdin | string | — | Content written to the signing command's stdin (e.g. a passphrase), rendered as a template ({{ Env.GPG_PASSPHRASE }}). The rendered value is a credential: leading and trailing whitespace is removed, and a template that does not render is an error naming signs[<id or index>].stdin without the template's text. |
stdin_file | string | — | Path to a file whose content is written to the signing command's stdin. |
verify | object | — | Post-sign verification knobs. Verification is ON by default wherever its inputs are derivable (keyed cosign, keyless cosign on GitHub Actions, gpg); set verify: { enabled: false } to disable, or supply the keyless certificate identity / issuer when they cannot be derived from the environment. |
changelog
| Field | Type | Default | Description |
|---|---|---|---|
abbrev | integer | — | Hash abbreviation length. Default: 0 (no truncation, emit the full SHA). Set to -1 to omit the hash entirely; positive values truncate to N chars. Values below -1 are clamped to -1 (a git log --abbrev=N would otherwise reject -2, -3, ...). |
ai | object | — | AI-powered changelog enhancement configuration. |
divider | string | — | Divider string inserted between changelog groups (e.g. "---"). Supports templates. |
expand_squash_merges | bool | — | Read a squash-merged pull request as the commits it squashed. GitHub's squash merge lists each squashed commit's subject in the merge commit body as * <subject> (#N); with this set, every such bullet whose subject is conventional (type(scope): text) becomes its own changelog entry under the PR's entry, and anodizer tag / anodizer bump read the bullets for feat: / fix: / BREAKING CHANGE when inferring the bump. Default: false — one entry per merge commit, its title only. |
files | object | — | Which CHANGELOG.md files a release writes: one per crate, the aggregate root file, or both. The keys that decide the changelog's content (use, format, groups, filters, paths, sort, ...) stay at the changelog: level. See the changelog.files section. |
filters | object | — | Commit message filters to include or exclude from the changelog. |
footer | object | string | — | Text appended to the changelog. Same shape as header. |
format | string | — | Template for each changelog commit line. Available variables: SHA (full hash), ShortSHA (abbreviated), Message (commit subject), AuthorName, AuthorEmail, Login (per-commit GitHub username), Logins (per-entry comma-separated list of GitHub usernames for that commit), AllLogins (comma-separated list of all GitHub usernames across the entire release), AuthorUsername (renders @login when the login is known, the plain author name otherwise).Logins come from the SCM API backends ( use: github/gitea) and — when the release targets GitHub and a token is available — from GitHub-API enrichment of the default git backend, so use: git changelogs render @login mentions too. Release bodies carry bare @login (GitHub autolinks them); on-disk CHANGELOG.md files get explicit [@login](https://github.com/login) links. Without a token (or offline, or with a non-GitHub remote) rendering keeps the plain author name.Default depends on backend (the full SHA is used): • git backend (default): "{{ SHA }} {{ Message }}"• github/gitlab/gitea backend: "{{ SHA }}: {{ Message }} (@Login or AuthorName <AuthorEmail>)" — falls back to AuthorName <AuthorEmail> when Login is empty.When abbrev < 0, the default reduces to "{{ Message }}" (no hash prefix). |
groups | list of object | — | Groups for organizing changelog entries by commit message prefix. |
header | object | string | — | Text prepended to the changelog. Inline string, from_file: <path>, or from_url: <url>, the same shapes release.header takes, so a header can come from a templated file or a remote endpoint. |
paths | list of string | — | Optional path filter that NARROWS the per-crate scope by intersection — it never replaces it. Each changelog track already scopes to its own commits (a per-crate track to its crate directory; the aggregate to the union of every crate directory plus the workspace manifests). When set, paths further restricts that derived scope to commits whose touched files match these globs; it can only ever drop commits and cannot widen to another track's directory. A paths value that is a superset of the derived scope (e.g. ["crates/**", "Cargo.toml", "Cargo.lock"] over a workspace) is therefore a no-op — and so is the recommended default of leaving paths unset, where scoping is fully derived. The same derived scope and intersect drive all three changelog formats (keep-a-changelog, json, and release-notes), so they cannot drift.With use: git the intersect is precise (commits are filtered by their touched files). With use: github only the first path is used for API queries; with use: gitlab / gitea path filtering is unsupported, so a narrowing paths there is coarse and a warning is emitted. Supports template rendering. |
skip | 0 | 1 | bool | string | — | Skip changelog generation. Accepts bool or template string (e.g. "{{ if IsSnapshot }}true{{ endif }}" for conditional skip).Accepts disable: as an alias so imported configs (which use changelog.disable:) parse cleanly without a rename. Anodizer's broader convention is skip: (mirrors release.skip_upload, stage-level skip: flags), so the canonical key stays skip:. |
snapshot | bool | — | When true, render the changelog in snapshot mode too, for a local preview or a draft. By default a snapshot run skips the changelog. |
sort | string | — | Sort order for changelog entries: "asc" or "desc" (default: "asc"). |
title | string | — | Title heading for the changelog. Default: "Changelog". Supports templates. |
use | string | — | Changelog source: "git" (default), "github", "gitlab", "gitea", or "github-native". "github", "gitlab" and "gitea" fetch commits through that forge's API. "github" and "gitea" also read each commit's author login (the {{ Login }} / {{ Logins }} per-entry template variables and the {{ AllLogins }} release-wide variable). GitLab's API returns no logins, so under "gitlab" {{ AllLogins }} holds only the co-author names from Co-authored-by trailers. Under "git", logins are looked up through the GitHub API when the release targets GitHub and a token is available. "github-native" delegates entirely to GitHub's auto-generated notes. |
cloudsmiths
Cloudsmith publisher configuration. Pushes packages to Cloudsmith repositories.
| Field | Type | Default | Description |
|---|---|---|---|
component | string | — | Debian component name (e.g. "main"). |
distributions | map | — | Distribution mapping per format. Each entry accepts either a single slug (deb: "ubuntu/focal") or an array of slugs (deb: ["ubuntu/focal", "ubuntu/jammy"]); the array form issues one upload per entry. |
exclude | list of string | — | Glob patterns matched against each artifact's file name; anodizer drops any artifact whose name matches at least one glob from THIS Cloudsmith target only. Use it to keep heavy sidecars off a given repository while packages still upload. Composes with ids: and formats: (all filters apply). Unset or empty keeps everything.cloudsmiths: - organization: my-org repository: my-repo exclude: [".sha256", ".sig", "*.cdx.json"] |
formats | list of string | — | Package format filter: only publish artifacts matching these formats. |
ids | list of string | — | Build IDs filter: only publish artifacts from builds whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the Cloudsmith publisher is skipped. Render failure hard-errors. Config key: cloudsmiths[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
keep_versions | integer | — | Retain only the N most-recent release versions of each published package, pruning older ones from the Cloudsmith repository after a successful upload.This is opt-in and destructive: leaving it unset (the default) prunes nothing. When set, after the just-uploaded artifacts are confirmed present the publisher lists every version of this package in the repository, ranks the distinct release versions by SemVer (newest first), keeps the top N — which always includes the version just published — and issues DELETE for every artifact (all formats and architectures) belonging to versions ranked beyond N. Other packages sharing the repository are never touched.All package formats of one release are treated as the same version: the deb/rpm epoch ( 1:0.9.1-1) and apk revision (0.9.1-r1) suffixes are normalized to the base SemVer (0.9.1) before ranking, so keeping 2 versions keeps every .deb/.rpm/.apk of the two newest releases.Pruning is best-effort: it runs only after the upload (the real work) has already succeeded, is skipped entirely in dry-run and snapshot mode, and a list/delete failure emits a prominent warning and continues; the release does not fail and nothing is rolled back. keep_versions: 0 is rejected — anodizer never prunes every version.Primarily a remedy for storage-capped repositories (e.g. the Cloudsmith free plan's 500 MB limit, which offers no server-side retention policy). cloudsmiths: - organization: acme repository: tools keep_versions: 3 # keep the 3 newest releases, prune older ones |
organization | string | — | Cloudsmith organization slug. |
repository | string | — | Cloudsmith repository slug. |
republish | 0 | 1 | bool | string | — | When true, allow republishing over existing package versions. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
secret_name | string | — | Environment variable name containing the Cloudsmith API key. |
skip | 0 | 1 | bool | string | — | Template-conditional skip: skip this publisher when the value is, or a template renders, true or 1 (any letter case). |
crates
| Field | Type | Default | Description |
|---|---|---|---|
after | object | — | Hooks that run inside THIS crate's scope at the end of the release, after the crate's publish dispatch (and post-publish verification) completes. Per-crate counterpart of the top-level after: (which fires once around the whole release). Same per-crate firing semantics across all modes, template variables, and abort semantics as the per-crate before:. |
app_bundles | list of object | — | macOS app bundle configurations for this crate. |
archives | false | list of object | [] | Archive configurations for this crate. Set to false to disable archiving, or provide an array of archive configs. |
before | object | — | Hooks that run inside THIS crate's scope at the start of the release, before the build. Distinct from the top-level before:, which fires ONCE around the whole release; these fire once per crate with that crate's version/tag template vars anchored, so cmd / dir / env / if render against the crate's own Version / Tag / ProjectName. A non-zero exit aborts the release.Fires once per crate in EVERY multi-crate mode — workspace per-crate AND workspace lockstep with multiple publisher crates — in both a full anodizer release and anodizer release --publish-only, matching the per-crate iteration of before_publish: and the publishers. With an explicit --crate subset only the selected crates' hooks fire. No-op in a single-crate config with no crates: block (use the top-level before: there). |
before_publish | object | — | Hooks that run immediately before THIS crate's publishers dispatch, once per matching artifact (the same per-artifact semantics as the top-level before_publish:), scoped to the crate's own artifacts and template vars. Honors the per-entry ids: / artifacts: filters. A non-zero exit aborts the release before that crate publishes to any registry. The top-level before_publish: still fires once over the full artifact set; this one targets a single crate's artifacts. |
binstall | object | — | cargo-binstall metadata configuration for this crate. |
blobs | list of object | — | Cloud storage (S3/GCS/Azure) upload configurations for this crate. |
builds | list of object | — | Build configurations for this crate. One entry per binary by default. |
checksum | object | — | Checksum configuration for this crate. |
cross | "auto" | "zigbuild" | "cross" | "cargo" | — | Cross-compilation strategy for this crate: auto, zigbuild, cross, or cargo. |
depends_on | list of string | — | Other crates this crate depends on; ensures release ordering. |
dmgs | list of object | — | macOS DMG disk image configurations for this crate. |
docker_digest | object | — | Docker image digest file configuration for this crate. |
docker_manifests | list of object | — | Docker multi-platform manifest configurations for this crate. |
dockers_v2 | list of object | — | Docker V2 image build configurations for this crate (canonical API: images+tags, annotations, build_args, sbom, disable). The legacy docker: block was removed; this is the only docker block. The docker_v2: spelling is still accepted via serde alias for back-compat. |
flatpaks | list of object | — | Linux Flatpak bundle configurations for this crate. |
msis | list of object | — | Windows MSI installer configurations for this crate. |
name | string | — | Crate name as published (must match the Cargo.toml package name). |
nfpms | list of object | — | Linux package (deb, rpm, apk) configurations for this crate. Renamed from nfpm: (singular) for spelling parity with Defaults.nfpms and the rest of the plural-name per-crate packaging lists (dmgs, msis, pkgs, nsis, ...). The nfpm: spelling is still accepted via serde alias for back-compat. |
no_unique_dist_dir | 0 | 1 | bool | string | — | When true (or template evaluating to "true"), all build outputs are placed in a flat dist/ directory. When false, each goes to dist/{target}/. |
nsis | list of object | — | NSIS installer configurations for this crate. |
path | string | — | Relative path to the crate directory from the project root. |
pkgs | list of object | — | macOS PKG installer configurations for this crate. |
publish | object | — | Publishing targets (Homebrew, Scoop, AUR, etc.) for this crate. |
release | object | — | GitHub release configuration for this crate. |
snapcrafts | list of object | — | Snapcraft package configurations for this crate. |
tag_template | string | — | Git tag template used to tag and identify releases (supports templates). The first rung that applies wins: 1. this field, when set; 2. defaults.crates.tag_template; 3. <tag.tag_prefix>{{ Version }} when the repo sets tag.tag_prefix; 4. v{{ Version }} when the root Cargo.toml declares [workspace.package].version (a lockstep workspace); 5. the <name>-v{{ Version }} convention.Rungs 3 and 4 never apply to a config with a workspaces: list. Rungs 2–4 are folded into this field at config load; read the resolved family through tag_family_template() and do not touch this field directly. |
universal_binaries | list of object | — | macOS universal binary (fat binary) configurations for this crate. |
version | string | — | Pinned semver version. When set, anodizer bump --strict refuses to edit this crate's Cargo.toml to anything other than this value; without --strict, the bump proceeds with a warning. Lets a release captain freeze a crate's version while still running broad --workspace bumps. |
version_files | list of (object | string) | — | Repo-committed files that embed this crate's release version outside Cargo.toml (repo-root-relative path strings). At tag time each file has its occurrences of the old version rewritten to the new version — both bare and v-prefixed forms, word-boundary anchored — and is staged into the same bump commit as this crate's Cargo.toml. Overrides the workspace-level defaults.version_files. An entry may instead be a path + match mapping scoping the rewrite to the occurrences the match regex selects, so several crates can share one file. |
version_sync | object | — | Automatic version number synchronization configuration for this crate. |
defaults
Workspace-level defaults. Each key has the same shape as the matching key under crates[] or at the top level, and fills what the config left unset. A field the config sets always keeps its own value.
| Key | Applied to | How |
|---|---|---|
builds | every build of every crate | merged into each builds[] entry; a crate with no builds gets one build made from it |
archives | every crate | merged into the crate's archive whose first format matches; appended when none matches; a crate with archives: false takes nothing |
nfpms, snapcrafts, flatpaks, app_bundles, dmgs, pkgs, msis, nsis, dockers_v2 | every crate | merged into the crate's entry with the same identity (id; id then package_name for nfpm; name for snapcraft); appended when none matches |
checksum | every crate | merged into the crate's checksum block |
cross | every crate | used when the crate sets no cross |
version_files | every crate | used whole when the crate sets no version_files; a crate list is never merged with it |
crates.tag_template | every crate | used when the crate's tag_template is unset or empty |
publish.<publisher> | every crate | merged into the crate's publish.<publisher> block |
publish.on_error, publish.on_rollback | every crate | appended after the crate's own hooks |
source, notarize, srpms | the top level | merged into the top-level block |
upx, sign, binary_signs, docker_signs, sbom, makeselves, install_scripts | the top level | used as the one entry of the top-level list (upx, signs, binary_signs, docker_signs, sboms, makeselfs, install_scripts) when that list is empty |
targets | every build | used by every build that sets no targets |
env | the top level | put before the top-level env, so a top-level entry with the same key wins |
"Merged" means the default fills every field the entry left unset, nested blocks field by field; a list field the entry sets keeps its own list whole. An empty block ({}) in a crate inherits every field. A block or list entry with skip: true (or a skip string reading true or 1) takes nothing from defaults, and a list default that shares a skipped entry's identity key is not appended; a build's skip does not stop the builds merge. A list default that matches no entry, including one with no identity key, is appended to the crate's list; an empty or absent list gets it as its one entry.
| Field | Type | Default | Description |
|---|---|---|---|
app_bundles | object | — | Default app-bundle settings, merged into each crate's app-bundle entry with the same id, or appended when none matches. |
archives | object | — | Default archive settings, merged into each crate's archive whose first format matches this block's first format, or appended when none matches. A crate with archives: false takes nothing. |
binary_signs | object | — | Default binary-signing settings, used as the one top-level binary_signs entry when that list is empty. |
builds | object | — | Default build settings merged into every crates[].builds[] entry; a field the build sets keeps its value. A crate with no builds gets one build made from this block. |
checksum | object | — | Default checksum settings, merged into every crate's checksum block. Same shape as crates[].checksum. |
crates | object | — | Per-crate fallbacks for a config with a top-level crates: list: tag_template is used by every crate whose own tag_template is unset or empty. Setting this block without a top-level crates: list, or together with defaults.workspaces, fails when the config loads. |
cross | "auto" | "zigbuild" | "cross" | "cargo" | — | Cross-compilation strategy for every crate that sets no cross: auto, zigbuild, cross, or cargo. Same values as crates[].cross. |
dmgs | object | — | Default DMG settings, merged into each crate's DMG entry with the same id, or appended when none matches. |
docker_signs | object | — | Default Docker image signing settings, used as the one top-level docker_signs entry when that list is unset or empty. |
dockers_v2 | object | — | Default Docker (V2 API) image settings, merged into each crate's dockers_v2 entry with the same id, or appended when none matches. The docker_v2: spelling is still accepted. |
env | list of string | — | Environment variables (KEY=VALUE strings) put before the top-level env, so a top-level entry with the same key wins. |
flatpaks | object | — | Default flatpak settings, merged into each crate's flatpak entry with the same id, or appended when none matches. |
install_scripts | object | — | Default install-script settings, used as the one top-level install_scripts entry when that list is empty. |
makeselves | object | — | Default makeself settings, used as the one top-level makeselfs entry when that list is empty. |
msis | object | — | Default MSI settings, merged into each crate's MSI entry with the same id, or appended when none matches. |
nfpms | object | — | Default nfpm (deb/rpm/apk) settings, merged into each crate's nfpm entry with the same id (or, with no id, package_name), or appended when none matches. |
notarize | object | — | Default macOS notarization settings, merged into the top-level notarize block. |
nsis | object | — | Default NSIS settings, merged into each crate's NSIS entry with the same id, or appended when none matches. |
pkgs | object | — | Default macOS PKG settings, merged into each crate's PKG entry with the same id, or appended when none matches. |
publish | object | — | Default publisher settings, one block per publisher, each merged into every crate's matching publish.* block. |
sbom | object | — | Default SBOM settings, used as the one top-level sboms entry when that list is empty. |
sign | object | — | Default artifact signing settings, used as the one top-level signs entry when that list is empty. |
snapcrafts | object | — | Default snapcraft settings, merged into each crate's snapcraft entry with the same name, or appended when none matches. |
source | object | — | Default source-archive settings, merged into the top-level source block. |
srpms | object | — | Default SRPM settings, merged into the top-level srpms block. |
targets | list of string | — | Build targets for every build that sets no targets of its own (e.g. ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin"]). When unset or empty, anodizer's built-in target list applies. |
upx | object | — | Default UPX settings, used as the one top-level upx entry when the top-level upx list is empty. |
version_files | list of (object | string) | — | Repo-committed files whose embedded release version is rewritten at tag time (repo-root-relative path strings). Used whole as the version_files of every crate that sets none; a crate's own list replaces it entirely. Takes the same entries as crates[].version_files, including the anchored path + match form. |
workspaces | map | — | Marker for a config with a top-level workspaces: list. It holds no fields. Setting it without a top-level workspaces: list, or together with defaults.crates, fails when the config loads. |
docker_signs
| Field | Type | Default | Description |
|---|---|---|---|
args | list of string | — | Arguments passed to the signing command. {{ .Artifact }} is replaced by the image reference with its digest and {{ .Signature }} by the synthesized <image>@<digest>.sig name before the rest is rendered as a template; {{ .Digest }} renders the image digest. Shell variables such as ${artifact} are never expanded on the docker path and reach the signing command as literal text. |
artifacts | string | — | Which docker artifacts to sign: all, images, manifests, none, or empty. Empty is the default and signs the canonical docker images. The singular image and manifest are refused: the sign stage fails the run, so a misspelled filter cannot sign nothing in silence. |
certificate | string | — | Certificate file whose PRESENCE selects cosign's bundle verification mode. The path itself never reaches the signing command: {{ .Certificate }} in args: renders empty on the docker path. |
cmd | string | — | Signing command to invoke (default: "cosign"). |
env | list of string | — | Environment variables passed to the signing command. |
id | string | — | Unique identifier for this docker sign config. |
ids | list of string | — | Docker config IDs filter: only sign images from configs whose id is in this list. |
if | string | — | Template-conditional: skip this docker sign config when the gate renders false, 0, no or empty (any letter case). An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
output | 0 | 1 | bool | string | — | Capture and log stdout/stderr of the docker signing command. |
signature | string | — | Ignored. A container signature is stored in the registry beside the image, and no file is written, so the docker sign stage synthesizes the <image>@<digest>.sig name its argv substitutes and reads this template nowhere. |
stdin | string | — | Content written to the signing command's stdin. Rendered as a template with nothing substituted first, so neither {{ .Artifact }} nor ${artifact} names anything here. The rendered value is a credential: leading and trailing whitespace is removed, and a template that does not render is an error naming docker_signs[<id>].stdin without the template's text. |
stdin_file | string | — | Path to a file whose content is written to the signing command's stdin. |
verify | object | — | Verification of each signature after signing. Docker signatures are verified with cosign verify against the registry the signature was just pushed to. |
dockerhub
Docker Hub description sync configuration. Pushes image descriptions and README content to Docker Hub repositories.
| Field | Type | Default | Description |
|---|---|---|---|
description | string | — | Short description for the Docker Hub repository (max 100 chars). |
full_description | object | — | Full description (README) source for the Docker Hub repository. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the Docker Hub publisher is skipped. Render failure hard-errors. Exposes the dockerhub[].if: conditional gate; distinct from skip: (which expresses "always skip") and provides config-import parity. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
images | list of string | — | Docker Hub image names to update (e.g. myorg/myapp). |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
secret_name | string | — | Environment variable name containing the Docker Hub token. |
skip | 0 | 1 | bool | string | — | Skip this publisher. Accepts bool or template string. Accepts the legacy disable: spelling via serde alias for back-compat with imported configs (the legacy disable: spelling). |
username | string | — | Docker Hub username for authentication. |
gemfury
Gemfury package registry publisher configuration.
Pushes deb / rpm / apk artifacts to https://push.fury.io/<account>. Authenticates via HTTP Basic auth using the push token as the username (empty password) — the conventional Fury push form.
| Field | Type | Default | Description |
|---|---|---|---|
account | string | — | Gemfury account name. Required; rendered through the template engine so account: "{{ Env.MY_FURY_ACCOUNT }}" works. |
api_secret_name | string | — | Environment variable name carrying the API (delete) token. Default FURY_API_TOKEN. |
api_token | string | — | Optional API token used by rollback to issue DELETE /<account>/packages/<name>/versions/<version>. When unset, the env var named by api_secret_name (default FURY_API_TOKEN) is consulted at rollback time. If both are absent at rollback time, the publisher falls back to a manual-cleanup warn. |
exclude | list of string | — | Glob patterns matched against each artifact's file name; anodizer drops any artifact whose name matches at least one glob from THIS Gemfury target only. Use it to keep heavy sidecars off the account while packages still upload. Composes with ids: and the format filter (all filters apply). Unset or empty keeps everything.gemfury: - account: my-account exclude: [".sha256", ".sig", "*.cdx.json"] |
formats | list of string | — | Package format filter: only push artifacts matching these formats. Defaults to ["apk", "deb", "rpm"]. |
id | string | — | Unique identifier for selecting this entry from the CLI (--id=...). |
ids | list of string | — | Build IDs filter: only include artifacts whose archive id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the Gemfury publisher entry is skipped. Render failure hard-errors. Exposes the gemfury[].if: conditional gate; distinct from skip: (which expresses "always skip") and provides config-import parity. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: true — Gemfury is a Manager-group publisher (mutable but reversible via the delete API), so a failed publish aborts by default to avoid surprising the operator with a half-released version. Set to false to log failures but continue. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
secret_name | string | — | Environment variable name carrying the push token. Default FURY_PUSH_TOKEN. The actual token VALUE is read from this env var at publish/rollback time. |
skip | 0 | 1 | bool | string | — | Template-conditional skip: skip this publisher entry when the value is, or a template renders, true or 1 (any letter case). Accepts bool or template string. Accepts the legacy disable: spelling via serde alias for back-compat with imported gemfury[].disable: configs. |
token | string | — | Push token used as the HTTP Basic auth username (empty password). When unset, the env var named by secret_name (default FURY_PUSH_TOKEN) is consulted at publish time. NEVER logged. |
git
Git-level tag discovery and sorting settings.
Controls how anodizer discovers and orders tags when determining the current and previous versions. Version bumping is set in the separate tag: block.
| Field | Type | Default | Description |
|---|---|---|---|
ignore_tag_prefixes | list of string | — | Tag prefixes to ignore during version detection (supports templates). Tags starting with any prefix in this list are excluded. The ignore-tag-prefixes feature. |
ignore_tags | list of string | — | Tag patterns to ignore during version detection (supports templates). Tags matching any pattern in this list are excluded from version detection entirely. |
prerelease_suffix | string | — | Suffix that identifies pre-release tags for sorting purposes. When set, tags ending with this suffix are treated as pre-releases and sorted accordingly during tag discovery. |
tag_sort | string | — | How to sort git tags when determining the latest version. Accepted values: - "-version:refname" (default) — lexicographic version sort on the tag name. - "-version:creatordate" — sort by the tag's creation date (newest first). - "semver" — strict SemVer 2.0.0 ordering computed in Rust; prereleases sort below their release per spec section 11. Bypasses git's native sort. - "smartsemver" — same ordering as "semver", but when the current version (resolved from the template Version variable) is non-prerelease, prerelease tags are filtered out before previous-tag selection. Prevents v0.2.0-beta.3 from being picked as the predecessor of v0.2.0 (which would otherwise produce an empty changelog). |
gitea_urls
Custom Gitea API/download URLs for self-hosted Gitea installations. Gitea API/download URL overrides.
| Field | Type | Default | Description |
|---|---|---|---|
api | string | — | Gitea instance URL (e.g. https://gitea.example.com).The release backend appends /api/v1/… itself; a value that already ends in /api/v1 is accepted and trimmed back to the instance root. |
download | string | — | Gitea download URL for release assets. |
skip_tls_verify | bool | — | When true, skip TLS certificate verification for the custom URLs. |
github_urls
Custom GitHub API/upload/download URLs for GitHub Enterprise installations. GitHub API/download URL overrides.
| Field | Type | Default | Description |
|---|---|---|---|
api | string | — | GitHub API base URL (e.g. https://github.example.com/api/v3/). |
download | string | — | GitHub download URL for release assets (e.g. https://github.example.com/). |
skip_tls_verify | bool | — | When true, skip TLS certificate verification for the custom URLs. |
upload | string | — | GitHub upload URL for release assets (e.g. https://github.example.com/api/uploads/). |
gitlab_urls
Custom GitLab API/download URLs for self-hosted GitLab installations. GitLab API/download URL overrides.
| Field | Type | Default | Description |
|---|---|---|---|
api | string | — | GitLab API base URL (e.g. https://gitlab.example.com/api/v4/). |
download | string | — | GitLab download URL for release assets. |
skip_tls_verify | bool | — | When true, skip TLS certificate verification for the custom URLs. |
use_job_token | bool | — | When true, authenticate with the CI_JOB_TOKEN. When false, a personal token is used. |
use_package_registry | bool | — | When true, use the GitLab Package Registry for uploads. When false, uploads go to Generic Packages. |
homebrew_casks
Homebrew Cask configuration, with the same keys in two places:
homebrew_casks:: a top-level list; carriesrepository,commit_author,directory,ids,url, structureduninstall/zap, etc.crates[].publish.homebrew_cask:: a per-crate cask, whereurl_templateis the simpler alternative tourl.
Every key is optional in both places.
| Field | Type | Default | Description |
|---|---|---|---|
alternative_names | list of string | — | Alternative cask names (aliases). |
app | string | — | macOS .app bundle name (e.g. "MyApp.app"). |
binaries | list of (object | string) | — | Binary stubs to create in /usr/local/bin. Each entry is either a bare string ( "my-cli" → emits binary "my-cli") or a structured { name, target } object ({ name: "my-cli", target: "mycli" } → emits binary "my-cli", target: "mycli"). The target: form mirrors the Homebrew Ruby cask DSL for binary renames — without it, a wrapped binary installs at the wrong path. Cask binary entry. |
binary | string | — | Deprecated singular spelling of binaries. The upstream replaced binary: foo with binaries: [foo]; this field captures the legacy spelling so imported configs keep parsing. apply_homebrew_cask_legacy_singulars folds the value into binaries at config-load time and emits a one-time deprecation warning per occurrence. The field is excluded from serialization so a round-tripped config emits only the canonical plural form. |
caveats | string | — | Custom caveats shown after install. |
commit_author | object | — | Commit author with optional signing. |
commit_msg_template | string | — | Custom commit message template. Default: "Brew cask update for {{ ProjectName }} version {{ Tag }}" |
completions | object | — | Shell completion definitions. |
conflicts | list of object | — | Conflicting casks or formulae. |
custom_block | string | — | Arbitrary Ruby code inserted into the cask block. |
dependencies | list of object | — | Cask dependencies (other casks or formulae). Rendered casks first, then formulae, each group sorted by name without regard to case with the names written as given, the order brew style requires. |
depends_on_macos | bool | — | Whether the cask renders depends_on :macos. When unset, anodizer decides from the downloads and the custom_block: a cask with no Linux download gets depends_on :macos unless its custom_block gives it a Linux side or declares an OS dependency.The block is read as code, with these set aside, each one carrying on into the next lines until it closes: "…", '…' and `…` strings (inside "…" and `…`, #{…} is read as code, so the string ends at its own quote, and #$" interpolates $"); heredoc bodies (<<~TAG, <<-TAG, <<TAG, a << before a space or a digit being a shift; unless the tag is single-quoted, a body line ending in an odd run of \ joins the next one, so a tag there does not close it, and #{…} in a body line is code, so a heredoc opened there has its body read from the next line, before the rest of the body around it, and a #{…} left open at the end of a body line reads on into the next); %(), %q, %Q, %w, %W, %i, %I, %r, %s and %x literals delimited by nesting brackets or one repeated punctuation character, a typed one also by a space or the end of the line (a list, %w %W %i %I, splits its words on whitespace, so whitespace never closes it), and a bare % where an operand must stand (with nothing before it on its statement but an operator, or after a label a:, the : of a ternary or a keyword that takes an operand: and, begin, break, case, do, else, elsif, ensure, if, in, next, or, rescue, return, then, unless, until, when or while) also by a space, a tab, = or the end of the line (a literal delimited by the end of its line holds the next line, and the one after while the held line ends in an odd run of \, and a %r closed that way takes the letters that start the line after as its options); ?x character literals (not ?ab, nor ?"a" after a word that may be a local); a /…/ regex where an operand stands; # comments; and =begin … =end comments, opened on any line that starts in code, the code of a #{…} left open at the end of the line before included. The code inside #{…} is kept apart from the code around it, in every literal that interpolates ("…" and `…` strings, :"…" symbols, heredocs whose tag is not single-quoted, %(), %Q, %W, %I, %r and %x literals and /…/ regexes), and each #{…} is read as statements of its own: its words count toward the Linux side, a depends_on opening one of its statements toward the OS dependency, and a ; in it ends no statement around the literal; it is read in the scopes around the literal by the rules below, as Ruby reads it, so the names it assigns are locals after it and the parameters and locals of a block, lambda or def inside it end with that block, lambda or def ("#{on_linux}" names a Linux side, '#{on_linux}' does not). None opens after a : that makes a symbol (one written against a method call that heads its statement or follows ., &. or :: does, as in foo:`, since such a call takes no label), in a special global ($"), or where it names a method: after ., &. or :: (with or without a space, whatever the name looks like, so x. % and a&.!~ are method names) or def, and as the ? or ! of a method name. Straight after a name Ruby reads as a method call, a ? opens a character literal (EOS!?", foo?=, x&.def??", foo.nil?=). Ruby reads a name as a method call after ., &. or ::, whatever it spells, and elsewhere unless it is a local variable, a parameter, a number, a variable with a sigil, or self, nil, true, false, end, __FILE__, __LINE__ or __ENCODING__. A ? or ! read as an operator ends no word, so a / after it opens a regex (!/a/).A <<, %, ? or / after a value is a shift, a modulo, a ternary or a division: after ), ], }, a number, a literal, a symbol (the operator ones and :a=, :a?, :a! included), self, nil, true, false, end, class, def, an @ or $ variable, a local assigned earlier in its scope (name =, name ||= and the other operator assignments wherever they stand, as in f(b += 1), unless the target follows ., &. or :: or has a sigil, a, b =, a, (b, c) =, (a, b) =, a, =, for a in, rescue => a, a named group before =~ in a regex with no #{…}, a name in an in pattern, the target of a rightward =>), a parameter of a block (|a, b; c|, also over several lines), method (def name(a, b = 1), with or without parentheses; a setter def name=(v) binds v alone) or lambda (->(x), -> (x)), or a word other than a keyword written straight against a <<, % or /. A def body sees none of the locals outside it; a block, a lambda body (-> { … }) included, sees them, and its parameters and the locals first assigned in it end at its end or }; if, while, case and begin open no scope. A statement continued with a \ at the end of a line, with a ?\ character literal holding the newline, with a ., &. or :: that ends a line (past blank and comment lines) or with a literal the newline closes, is read as one statement, so the code before the break decides what the operator, if or until after it is. After a word, a / followed by a space or = divides, and a : after a value ends a ternary and starts no symbol, so an operand stands after it. The word after a :: is a constant path or a method, also when the :: ended an earlier line. After an operator, (, ,, ;, the start of a line, a label, a Ruby keyword, any method of the cask DSL, a common method such as puts or a name ending in ? or ! followed by a space (no local or parameter is spelled that way) the operator opens a literal, and after any other word followed by a space it is read as an opener too, which is a guess.A Linux side is the word on_linux, on_system or app_image in that code. An OS dependency is a statement whose first word is depends_on (at the start of a line or after a ;, in the code around the literals or in a #{…}, after any opening () that names the key macos:, maximum_macos: or linux:, or the symbol :macos or :linux; the statement continues onto the next line while a line ends with ,, (, [, {, |, ., &&, ||, => or \, ends inside an open literal, or while it has opened more (, [ and { than it closed.The checks fall back to a word scan of the raw text, comments and strings included, which may over-match, when a literal is still open after the last line, when a guess opens a literal that spans several lines, or when a parameter still in scope is followed by a << whose heredoc tag closes on a later line. A word scan that finds a Linux-side word leaves depends_on :macos out and moves a flat download into on_macos, one that finds a depends_on OS key leaves the bare dependency out, and one that finds neither adds depends_on :macos; the render warns once per command unless this field is set.Read wrongly with no warning: a stanza built at runtime (through send or define_method), a depends_on after a do on the same line, and a guess whose literal closes on the same line, whose content is set aside.true renders depends_on :macos with a flat download; false renders no dependency and places a flat download inside on_macos. |
description | string | — | Cask description. |
directory | string | — | Subdirectory in the tap repo for cask placement (default: "Casks"). |
generate_completions_from_executable | object | — | Auto-generate shell completions from an executable. |
homepage | string | — | Project homepage URL. |
hooks | object | — | Pre/post install/uninstall hooks. |
ids | list of string | — | Build IDs filter: only include artifacts from builds whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the Homebrew Cask config is skipped. Render failure hard-errors. Config key: homebrew_casks[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
license | string | — | License identifier (SPDX). |
livecheck | object | — | livecheck stanza configuration for the cask. When unset, the cask emits livecheck do\n skip "Auto-generated on release."\nend (a binary cask's download URL/sha256 are rewritten on every release, so brew livecheck has nothing stable to poll). Setting any of strategy:, url: or regex: turns on active version detection, unless skip: true is also set. Reuses the formula livecheck config type; an active cask livecheck with no url: reads url :url. |
manpage | string | — | Deprecated singular spelling of manpages. The upstream replaced manpage: foo.1 with manpages: [foo.1]; this field captures the legacy spelling so imported configs keep parsing. apply_homebrew_cask_legacy_singulars folds the value into manpages at config-load time and emits a one-time deprecation warning per occurrence. The field is excluded from serialization so a round-tripped config emits only the canonical plural form. |
manpages | list of string | — | Manual page references to install. |
name | string | — | Cask name (default: crate / project name). |
repository | object | — | Unified repository config for the Homebrew tap. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
service | string | — | Path of a macOS Services bundle (for example MyTool.workflow) inside the download, written as service "<path>". |
skip_upload | 0 | 1 | bool | string | — | Skip publishing the cask. "true" always skips; "auto" skips for prerelease versions. Accepts bool or template string. |
uninstall | object | — | Structured uninstall stanza configuration. |
update_existing_pr | 0 | 1 | bool | string | — | When true, force-push the updated cask file to the existing PR branch when a PR for the same head branch already exists. The PR content is updated in place, so no duplicate is created. When false (default), the push is skipped and a warning is emitted so the operator sees that the publisher did not update the PR. |
url | object | — | Structured download URL configuration (top-level axis). |
url_template | string | — | Simple URL template for the .dmg/.zip download (per-crate shorthand). Cannot be combined with url.template: — set one or the other. If both are present, config validation rejects the config at parse time. Use url: for the structured form (verified domain, custom headers, etc.) or url_template: for a bare string shorthand — never both simultaneously. |
zap | object | — | Deep uninstall (zap) stanza configuration. |
homebrew_cores
homebrew-core formula-bump publisher configuration.
Bumps an EXISTING formula in Homebrew/homebrew-core (or any formula repository override) purely through the GitHub API — no clone, no brew invocation. The formula file's url (or tag:/revision: pair), sha256, and version stanzas are rewritten to the new release, the change is committed to a branch, and a pull request is opened against the formula repository. Each homebrew_cores[] entry bumps one formula.
Every field is optional: the formula name defaults to the crate name, the target repository defaults to Homebrew/homebrew-core, the formula path defaults to the sharded core layout (Formula/<letter>/<name>.rb, falling back to the flat Formula/<name>.rb), and the download URL defaults to the GitHub source tarball for the release tag.
homebrew_cores:
- name: my-tool| Field | Type | Default | Description |
|---|---|---|---|
commit_author | object | — | Commit author for the formula-bump commit, with optional signing. Its use_github_app_token is the canonical homebrew-core knob: when set, the author/committer fields are omitted from the contents-API commit so GitHub attributes it to the token's own account — the <app-slug>[bot] identity a GitHub App workflow needs to satisfy homebrew-core's DCO/CLA policy. Otherwise the resolved name/email (config → local git identity → the anodizer default) author the commit.Note: signing has no effect here — formula bumps commit through the GitHub contents API, which GitHub signs server-side; the git -c commit.gpgsign path the tap/winget/krew publishers use does not apply.homebrew_cores: - commit_author: use_github_app_token: true |
commit_msg_template | string | — | Templated commit message (also the PR title). Default: "<formula> <version>" — the message form homebrew-core's CI expects for version bumps. |
direct_commit | 0 | 1 | bool | string | — | Commit straight to the base branch and open no pull request. Accepts bool or template string. Only honored for formula repositories you can push to — bumps targeting Homebrew/homebrew-core always go through a fork + PR, because homebrew-core never accepts direct pushes.A back-compat alias for repository.pull_request.enabled: false, the preferred spelling shared with the tap/scoop/nix publishers — either one selects the direct-commit path (both are still overridden by the always-fork-and-PR rule for Homebrew/homebrew-core). |
download_url | string | — | Templated download URL written into the formula's url stanza. Defaults to the GitHub source tarball for the release tag: https://github.com/<owner>/<repo>/archive/refs/tags/<tag>.tar.gz (owner/repo derived from the crate's release repository, then the git remote). |
id | string | — | Unique identifier for selecting this entry from the CLI (--id=...). |
ids | list of string | — | Crate scoping: when set, the formula name default is derived from the first crate named here. Unset, it comes from the workspace's primary crate. The workspace per-crate pattern — one homebrew_cores[] entry per crate, each scoped by ids:. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), this entry is skipped. Render failure hard-errors. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
name | string | — | Formula name (templated). Defaults to the scoped crate name (see ids:), then the workspace's primary crate name, then the project name. |
path | string | — | Formula file path inside the repository (templated). Defaults to the homebrew-core sharded layout Formula/<first-letter>/<name>.rb, falling back to the flat Formula/<name>.rb used by most personal taps when the sharded path does not exist. |
repository | object | — | Target formula repository. Defaults to Homebrew/homebrew-core. Carries the auth token override (repository.token), the base branch (repository.branch, default: the repo's default branch), and PR settings (repository.pull_request.draft / .body).homebrew_cores: - repository: { owner: my-org, name: my-formulas } |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — the bump is a PR that can be re-opened by hand, so a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves the opened pull request in place and does not close it. Default false. |
sha256 | string | — | Hex SHA-256 of the new download (templated). When unset, anodizer downloads download_url and hashes it — the same behavior as brew bump-formula-pr without --sha256. |
skip | 0 | 1 | bool | string | — | Skip this publisher. Accepts bool or template string. Accepts the legacy disable: spelling via serde alias for back-compat. |
update_existing_pr | 0 | 1 | bool | string | — | When true or 1, refresh the existing bump PR in place: a same-version re-cut force-resets the bump branch to the current base and re-commits the rewritten formula, so the open PR carries this run's content and no duplicate PR is opened. When false, 0 or empty (default), an already-open bump PR is left untouched and a warning names this toggle. Accepts bool or template string. Mirrors winget / krew / homebrew_cask's update_existing_pr. |
install_scripts
curl | sh installer-script configuration.
Drives the install-script stage, which emits a deterministic POSIX install.sh as a release asset. At run time the script detects the host OS + architecture, maps it to the matching release archive, downloads and sha256-verifies it, extracts the binary, and installs it into an install directory (falling back to $HOME/.local/bin when the primary directory is not writable and no sudo is available).
Every field is optional: the repository slug is derived from the git origin remote, the installed binary names from the project name, the per-platform asset names from the release's configured targets (via the same engine SSOT that keeps cargo-binstall pkg_url from 404ing), and the checksums filename and tag prefix from the flagship crate that builds the project binary — so a bare install_scripts: {} produces a fully working installer with no required input.
| Field | Type | Default | Description |
|---|---|---|---|
base_url | string | — | Base URL the script downloads releases from and queries the REST API against (default: https://github.com). Point this at a GitHub Enterprise host to install from a self-hosted GitHub; the script derives the API base as <base_url>/api/v3 for any non-github.com host. |
binaries | list of string | — | Binary names to install out of the extracted archive (default: a single-element list of the project name). Every name is installed, so an archive shipping multiple binaries ships them all. |
description | string | — | One-line description rendered into the script's header banner. |
filename | string | — | Output filename (default: install.sh). |
homepage | string | — | Project homepage URL rendered into the script's header banner. |
id | string | — | Unique identifier for this install-script config (default: "default"). |
install_dir | string | — | Directory the binary is installed into (default: /usr/local/bin). The generated script falls back to $HOME/.local/bin when this directory is not writable and no sudo is available. |
name | string | — | Human-readable name rendered into the script's header banner (default: the project name). |
repo | string | — | GitHub owner/name slug the script downloads releases from (default: derived from the git origin remote). |
skip | 0 | 1 | bool | string | — | Skip this config. Accepts bool or template string. Accepts the legacy disable: spelling via serde alias for back-compat with imported configs. |
verify_checksum | bool | — | Whether the script verifies each download's sha256 checksum before installing (default: true). Set false only for repos that publish no checksums file or .sha256 sidecars. |
makeselfs
| Field | Type | Default | Description |
|---|---|---|---|
arch | list of string | — | Target architecture filter. |
compression | string | — | Compression algorithm: gzip, bzip2, xz, lzo, compress, or none. |
description | string | — | Description for LSM metadata. |
extra_args | list of string | — | Extra arguments passed to the makeself command. |
filename | string | — | Output filename template (default includes project, version, os, arch). |
files | list of object | — | Additional files to include in the archive. |
homepage | string | — | Homepage URL for LSM metadata. |
id | string | — | Unique identifier for this makeself config (default: "default"). |
ids | list of string | — | Build IDs filter: only include artifacts whose id is in this list. |
keywords | list of string | — | Keywords for LSM metadata. |
license | string | — | License for LSM metadata. |
maintainer | string | — | Maintainer for LSM metadata. |
name | string | — | Display name embedded in the self-extracting archive. |
os | list of string | — | Target OS filter (default: ["linux", "darwin"]). |
script | string | — | Startup script to run when the archive is extracted and executed. Required — the archive will not be created without this. |
skip | 0 | 1 | bool | string | — | Skip this config. Accepts bool or template string. Accepts the legacy disable: spelling via serde alias for back-compat with imported configs. |
mcp
MCP server registry publisher configuration.
Publishes a server.json server description to the MCP registry (https://registry.modelcontextprotocol.io/v0/publish by default). MCP config (server details flattened onto the publisher block).
| Field | Type | Default | Description |
|---|---|---|---|
auth | object | {"type":"none"} | Authentication method for the registry's /v0/publish endpoint. Defaults to none (anonymous publish, allowed for development / staging registries). |
description | string | — | Clear human-readable description of server functionality (max 100 chars). |
homepage | string | — | Optional URL to the server's homepage, documentation, or project website. Serialized as websiteUrl in the registry payload. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the MCP publisher is skipped. Render failure hard-errors. The mcp.if: conditional gate. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
name | string | — | Server name in reverse-DNS format (e.g. io.github.user/weather). Must contain exactly one forward slash separating namespace from server name. An empty / unset value skips the publisher entirely. |
packages | list of object | [] | Distribution packages — one entry per package registry (npm, pypi, nuget, oci). |
registry | string | — | Override the registry endpoint (for staging or a private mirror). Defaults to https://registry.modelcontextprotocol.io when unset. |
repository | object | {"url":"","source":"","id":"","subfolder":""} | Optional source repository metadata. Emitted as the repository object in the registry payload — omitted entirely when url is empty. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
skip | 0 | 1 | bool | string | — | Skip this publisher when the value is, or a Tera template renders, true or 1 (any letter case); false, 0 or empty runs it (e.g. "{{ if .IsSnapshot }}true{{ endif }}"). Accepts the legacy disable: spelling via serde alias for back-compat with imported configs (the MCP config field MCP.Disable string). |
title | string | — | Optional human-readable title shown in registry UIs (max 100 chars). Templated; supports {{ ProjectName | title }}, {{ Version }}, etc. |
transports | list of object | [] | Accepted so an imported config that carries a top-level transports: list still loads, since the mcp: block refuses unknown keys. The list is ignored and never sent to the registry: each package's transport is set by packages[].transport. |
metadata
| Field | Type | Default | Description |
|---|---|---|---|
commit_author | object | — | Commit author identity for commit workflows: name, email, signing and use_github_app_token, the same keys as a publisher's commit_author. Exposed as {{ Metadata.CommitAuthor.Name }} / {{ Metadata.CommitAuthor.Email }}. |
description | string | — | Human-readable project description (exposed as {{ Metadata.Description }}). |
documentation | string | — | Project documentation URL, e.g. a docs.rs or hosted-docs link (exposed as {{ Metadata.Documentation }}). Derived from Cargo.toml [package].documentation when unset. |
full_description | object | string | — | Long-form project description. Supports inline string, from_file, or from_url. Exposed as {{ Metadata.FullDescription }}. A from_url source is fetched in the release stage; a from_file path is template-rendered and read when the run starts. |
homepage | string | — | Project homepage URL (exposed as {{ Metadata.Homepage }}). |
license | string | — | Project license identifier, e.g. "MIT" or "Apache-2.0" (exposed as {{ Metadata.License }}). |
maintainers | list of string | — | List of project maintainers (exposed as {{ Metadata.Maintainers }}). |
mod_timestamp | string | — | Global modification timestamp for metadata output files (metadata.json and artifacts.json). Template string (e.g. "{{ CommitTimestamp }}") or unix timestamp. When set, rendered late in the pipeline and applied as file mtime. Exposed as {{ Metadata.ModTimestamp }}. |
repository | string | — | Project source-repository URL, e.g. a GitHub URL (exposed as {{ Metadata.Repository }}). Derived from Cargo.toml [package].repository when unset; feeds the npm package.json repository field, which npm provenance validates against the OIDC-claimed repository. |
milestones
| Field | Type | Default | Description |
|---|---|---|---|
close | bool | — | Close the milestone on release. Default: false. |
fail_on_error | bool | — | Fail the pipeline if milestone close fails. Default: false. |
name_template | string | — | Milestone name template (default: "{{ Tag }}"). |
repo | object | — | Repository owner/name. Auto-detected from git remote if not set. |
monorepo
Monorepo configuration.
When configured, tag discovery filters by tag_prefix and the working directory is scoped to dir.
The two tag_prefix keys work in opposite directions:
monorepo.tag_prefix: tags in git already HAVE the prefix (e.g.subproject1/v1.2.3). The prefix is STRIPPED for{{ Tag }}while{{ PrefixedTag }}retains the full tag.tag.tag_prefix: a prefix to PREPEND when constructing{{ PrefixedTag }}from a plain tag.
When monorepo is configured, it takes precedence over tag.tag_prefix for PrefixedTag / PrefixedPreviousTag behavior.
| Field | Type | Default | Description |
|---|---|---|---|
dir | string | — | Working directory for this subproject. Used for changelog path filtering (when no explicit changelog.paths or crate.path is configured) and as the default build dir. |
tag_prefix | string | — | Tag prefix for this subproject (e.g. "subproject1/").Tags matching this prefix are selected during tag discovery, and the prefix is stripped from {{ Tag }} while {{ PrefixedTag }} retains the full tag. |
nightly
| Field | Type | Default | Description |
|---|---|---|---|
draft | bool | — | Override release.draft for nightly runs only. When unset, release.draft applies; when set, this value is used. |
keep_single_release | bool | — | Keep only the nightly release this run creates: after it is published, every older nightly release with the same name, and the tag anodizer created for it, is deleted. Default: false. Set true to maintain a single rolling nightly release on GitHub.Back-compat alias for retention: { keep_last: 1 }. When both keep_single_release and retention are set, retention wins. Destructive: deletes a published release via the GitHub Releases API. GitHub-only. |
make_latest | 0 | 1 | bool | string | — | Override release.make_latest for nightly runs only, with the same spellings: true, false, 1, 0 and auto in any letter case, quoted or unquoted, or a template. Default: false — a rolling nightly must not displace the newest stable release in the GitHub UI, in releases/latest, or for the install scripts and gh release download invocations that resolve it.An unset value means false, and release.make_latest is not consulted, for the same reason as prerelease: unset there means GitHub's own default, which IS latest. |
name_template | string | — | Template for the nightly release's NAME, replacing release.name_template on nightly runs only. Unset falls through to release.name_template, so a nightly is named exactly like a stable release unless this says otherwise. Templates are rendered with the nightly Version already applied. |
prerelease | bool | — | Mark the nightly release as a prerelease. Default: true.An unset value means true, and release.prerelease is not consulted: that field resolves to false for a nightly, so using it would publish every nightly as a stable release. An unset release.prerelease is false, and prerelease: auto does not help either: auto reads the tag the run cuts, which answers true only while that tag parses as a semver carrying a prerelease part, and a fixed tag_name (nightly, edge) parses as no semver at all. Set false to opt out. |
publish_release | bool | — | Whether to publish a GitHub Release at all. Default: true. Set false for nightly-only docker pushes / blob uploads. |
publish_repo | string | — | Publish the nightly release to a repository other than the source repo, in "owner/repo" form (e.g. "nushell/nightly"). When unset, the nightly publishes to the configured release.github repo.When set, the nightly release create, asset upload, AND retention ( keep_single_release / retention.keep_last) delete calls all target this repo. The active SCM token is assumed to have write access to publish_repo. GitHub-only. |
retention | object | — | Retention policy for nightly releases on GitHub. Generalizes keep_single_release (which is keep_last: 1): keeps the N newest nightly releases matching the nightly tag/name and deletes the rest (releases + the tags anodizer created for them). Operates on publish_repo when set.The number kept resolves in this order: 1. retention set: keep_last, with 0 read as 1; 2. retention unset and keep_single_release: true: 1; 3. otherwise no old nightly is deleted. |
skip_if_no_changes | bool | — | Skip the nightly release when the run's changelog resolved to ZERO notable entries. Default: false — a nightly always cuts, even at a commit that already shipped as a stable release.true makes a nightly a no-op on a quiet day: it skips exactly what publish_release: false skips (the release publish; every other configured stage still runs) and exits 0. In a per-crate workspace the decision is made per crate, against that crate's own range.The signal is the changelog stage's own entry count, so changelog.filters / paths / groups decide what counts as notable. A run that produces no such count never skips: --skip=changelog (the stage did not run) and changelog.use: github-native (GitHub composes the notes server-side, so anodizer counts nothing) both leave the nightly to cut as usual.A repo with no prior tag in the crate's family is never skipped either: its whole history is unreleased, so "no changes since the last release" is not a claim it can make. |
tag_name | string | — | The tag the nightly release is created on, replacing the crate's tag_template (and any release.tag override) on nightly runs only. Templates allowed.Unset — the default — leaves the crate's own tag_template to create the tag from the nightly version (v{{ Version }} → v1.2.4-abc1234-nightly), which keeps two nightlies at different commits distinguishable.Set it to use one rolling tag ( tag_name: nightly → tag nightly, moved each run). In a workspace that creates more than one tag family the value is prefixed with the publishing crate's family so the tracks do not collide on a single tag: with operator-v{{ Version }}, tag_name: edge yields operator-vedge. |
version_template | string | — | Template for the rendered version string the nightly run sets on Version / RawVersion. Default: "{{ incpatch(v=Version) }}-{{ ShortCommit }}-nightly" — produces commit-immutable nightly versions (two same-day commits yield two distinct nightly versions).The {{ NightlyBuild }} template var (a stateless per-base-version build counter derived from git rev-list --count <last-tag>..HEAD) enables nushell-style schemes such as "{{ Base }}-nightly.{{ NightlyBuild }}+{{ ShortCommit }}". |
notarize
Top-level notarization configuration supporting both cross-platform (rcodesign) and native macOS (codesign + xcrun notarytool) modes.
| Field | Type | Default | Description |
|---|---|---|---|
macos | list of object | — | Cross-platform signing/notarization (rcodesign-based, works on any OS). |
macos_native | list of object | — | Native signing/notarization (codesign + xcrun, macOS only). |
skip | 0 | 1 | bool | string | — | Skip all notarization. Accepts a bool or a template string; a template skips when it renders true or 1. When absent, notarization runs for every entry that is not skipped on its own. |
npms
NPM package registry publisher configuration.
In the default optional-deps mode anodizer emits one thin npm package per built platform (with os/cpu/libc selectors derived from the target triple) plus a metapackage whose optionalDependencies lists every platform package; npm's native resolution installs only the one matching the host. In postinstall mode a single package carries a postinstall script that downloads the matching release archive at npm install time. Each npms[] entry produces one publish.
| Field | Type | Default | Description |
|---|---|---|---|
access | string | — | NPM access level for scoped packages. Accepts "public" / "restricted". Scoped packages on npmjs.org default to restricted unless this is set to public. |
amd64_variant | "v1" | "v2" | "v3" | "v4" | — | amd64 microarchitecture variant filter (v1 / v2 / v3 / v4). When set, an amd64 artifact is included only when its amd64_variant metadata matches (artifacts without the metadata always pass). Steers which tuned build ends up in each platform package. Typed as Amd64Variant, so any value outside v1..v4 is rejected at parse time. Default v1, mirroring the homebrew/winget/krew/nix/aur peers. |
arm_variant | string | — | ARM version filter (e.g. 6, 7). When set, a 32-bit ARM artifact is included only when its arm_variant metadata matches (artifacts without the metadata always pass). The krew and pypi selectors read the same way; defaults to 6 when unset. |
auth | "auto" | "oidc" | "token" | auto | Credential-selection strategy: auto (default) decides per package by probing the registry for the package's existence; token always uses the token; oidc always uses Trusted Publishing with no token fallback. Absent, it is auto. |
author | string | — | Templated author field for package.json. Falls back to the project's metadata.maintainers[0], and then to the crate's Cargo.toml [package].authors[0], when unset. |
bin | string | — | Command name installed by the metapackage's bin map (optional-deps mode). Falls back to the metapackage basename when unset. Shorthand for a single-command package; superseded by bins when both are set. |
binary_version | string | — | Version of the native binary the postinstall script downloads, when it differs from the published npm package version. Feeds the {{ Version }} var of the derived (or url_template) download URL, so the npm package can be re-published at a new version while still fetching a fixed binary release. Falls back to the release version when unset. Only consulted in postinstall mode. |
bins | map | — | Multiple commands installed by one package, as a map of command name → binary filename to resolve inside the selected per-platform package (optional-deps) or the extracted bin/ directory (postinstall). The package that ships hurl + hurlfmt, for example, sets bins: { hurl: hurl, hurlfmt: hurlfmt } to emit both commands. Each command gets its own launcher shim (<command>.js) and its own entry in the package's bin map. When set, this supersedes the single-command bin: shorthand; when unset, a single command is emitted from bin:. |
bugs | string | — | Templated bug tracker URL. Emitted as bugs.url in package.json. |
contributors | list of string | — | npm contributors list, emitted verbatim into package.json as contributors (each entry a name or Name <email> (url) string). |
description | string | — | Templated package description. Falls back to the project-level metadata.description when unset. |
engines | map | — | npm engines constraint map written verbatim into package.json (e.g. { node: ">=18" }). When unset, anodizer emits a sensible default of { node: ">=18" } — the minimum every leading native-CLI wrapper (esbuild, biome, swc) declares. Set to an empty map to suppress the field entirely. |
extra | map | — | Free-form root-level package.json fields. Shallow-merged into the generated package.json (config keys win over generated ones). Useful for mcpName, funding, or other npm metadata fields anodizer does not offer as first-class options. |
extra_files | list of string | — | Additional files to include in the published package alongside the generated metadata. Default ["README*", "LICENSE*"] (applied at the Default pass). |
files | list of string | — | Explicit npm files allowlist written into package.json. When unset, anodizer derives it from what each package actually ships (the per-platform binary, the metapackage shim.js, or the postinstall launcher/script) plus any extra_files basenames. Set to an empty list to suppress the field (npm then falls back to its implicit inclusion rules). |
format | string | — | Archive format the postinstall script downloads (tgz, tar.gz, tar, zip, binary). Default tgz. Only consulted in postinstall mode. |
homepage | string | — | Templated homepage URL. Falls back to metadata.homepage when unset. |
id | string | — | Unique identifier for selecting this entry from the CLI (--id=...). |
ids | list of string | — | Crate-name filter: only include artifacts whose owning crate_name is in this list. Orthogonal to targets: (both filters apply). |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the NPM publisher entry is skipped. Render failure hard-errors. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
keywords | list of string | — | NPM keywords list. |
libc_aware | bool | true | In optional-deps mode, emit separate per-platform packages for linux musl vs glibc (distinguished by the npm libc selector). When false, a single linux package per cpu is emitted with no libc selector. Default true — musl and glibc binaries are not interchangeable, so collapsing them risks installing the wrong one. |
license | string | — | Templated SPDX license identifier (e.g. MIT, Apache-2.0). Falls back to metadata.license when unset. |
man | list of string | — | npm man page list, emitted verbatim into package.json as man (a path or array of paths to troff-formatted man pages npm installs). |
metapackage | string | — | Metapackage name for optional-deps mode (e.g. biome). This is the package users npm install; it lists every per-platform package under optionalDependencies and ships the bin shim. Falls back to name (or the crate name) when unset. |
mode | "optional-deps" | "postinstall" | optional-deps | Binary-distribution strategy. optional-deps (default) emits npm's native per-platform packages; postinstall emits a download shim. |
name | string | — | NPM package name (the metapackage / postinstall package). May be scoped (@org/foo) or unscoped (foo). Falls back to the crate name when unset. |
platform_bin_dir | string | — | Per-platform binary subdirectory inside each optional-deps package (e.g. bin). When set, the platform binary ends up at <platform_bin_dir>/<binary> below the package root, the metapackage shim resolves it at that path, and the package's files allowlist covers it. Required by external shims that hard-code a nested resolve path — for example git-cliff's own wrapper resolves git-cliff-<os>-<arch>/bin/git-cliff, so a skip_metapackage layout must place the binary under bin/. When unset (the default), the binary arrives at the package root (<binary>). Ignored in postinstall mode. |
platform_name_template | string | — | Override the per-platform package naming in optional-deps mode.The rendered template is the FULL package name for each platform, replacing the default <scope>/<bin>-<os>-<cpu>[-<libc>]. Beyond the standard release context, four platform vars are available per package: NpmOs (npm's os selector: linux/darwin/win32), NpmCpu (x64/arm64/ia32/...), NpmLibc (glibc/musl, empty off-linux), plus anodizer's own Os/Arch target mapping (os windows; win32 is never produced). Example: "git-cliff-{{ Os }}-{{ NpmCpu }}" yields git-cliff-linux-x64, git-cliff-darwin-arm64, git-cliff-windows-x64. A rendered name without a leading @ is prefixed with scope when one is set; with this template set, scope is optional and unscoped names are allowed. If the template renders the same name for two platforms (e.g. it omits NpmLibc while libc_aware is true), the publisher fails with a config error naming the colliding packages. The npm os/cpu/libc selector fields inside each package.json always use the npm tokens regardless of this template. Ignored (hard error) in postinstall mode. |
provenance | bool | — | npm publishConfig.provenance flag. When unset, anodizer emits true — the npm supply-chain norm that biome and swc both set, pairing with anodizer's signing story. Set to false to disable. |
registry | string | — | Override the registry endpoint (default https://registry.npmjs.org). |
repository_url | string | — | Templated repository URL. Emitted as repository.url in package.json with type: git. Falls back to the crate's Cargo.toml [package].repository when unset. Named repository_url to avoid colliding with the {owner, name, token, ...} repository: block every git-based publisher uses; the legacy repository: spelling is accepted via serde alias for back-compat. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: true — NPM is a Manager-group publisher (one-way 72-hour unpublish window), so a failed publish aborts by default to avoid surprising the operator with a half-released version. Set to false to log failures but continue. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
scope | string | — | npm scope for the per-platform packages emitted in optional-deps mode (e.g. @biomejs). The per-platform packages are named <scope>/<bin>-<os>-<cpu>[-<libc>]. Required for optional-deps mode unless platform_name_template is set (a template can produce unscoped names); ignored in postinstall mode. |
shim_env | map | — | Environment variables injected into the child process the generated launcher shim spawns (both the optional-deps metapackage shim and the postinstall launcher). Each entry is merged over the inherited process.env before the native binary is exec'd, so a wrapper can set a runtime variable its binary expects (e.g. { BIOME_BINARY_SOURCE: npm }). When unset, the shim spawns with the inherited environment unchanged. |
skip | 0 | 1 | bool | string | — | Skip this publisher. Accepts bool or template string. Accepts the legacy disable: spelling via serde alias for back-compat. |
skip_metapackage | 0 | 1 | bool | string | — | In optional-deps mode, emit and publish ONLY the per-platform packages — no metapackage (no optionalDependencies aggregate, no bin shim). Accepts bool or template string, like skip. For projects whose base npm package is hand-written (e.g. a TypeScript library owning the name) while anodizer owns the per-platform binary packages it lists under its own optionalDependencies. Hard error in postinstall mode (there is no metapackage to skip) — but only when it is, or a template renders, true or 1: skip_metapackage: false (or a template rendering false, 0 or empty) is inert. Example bool form: skip_metapackage: true. Example templated form: skip_metapackage: "{{ if .Env.EXTERNAL_METAPACKAGE }}true{{ end }}" — skip only when the base package is published elsewhere. |
tag | string | — | NPM dist-tag for the publish (default latest). Templated. |
targets | list of string | — | Target-triple allowlist: restrict the per-platform packages to a subset of the built targets. When unset (the default), every built target that maps to an npm triple becomes a package. When set, only artifacts whose target triple appears in this list are turned into packages; the rest are silently skipped (deliberately out of scope — unlike a target with no npm os/cpu mapping, which is warned about). Orthogonal to ids:: both filters apply (an artifact must pass the ids filter AND, when this is set, be listed here). A listed triple that no selected build produces is a config error, and an explicit empty list (targets: []) is rejected — omit the field to publish every built target. Example: targets: [x86_64-unknown-linux-gnu, aarch64-apple-darwin]. |
templated_extra_files | list of object | — | Template-rendered file mappings (src may be a glob; rendered contents written to dst). |
token | string | — | Auth token for the registry. Falls back to the NPM_TOKEN env var when unset. Stored in .npmrc as //<registry>/:_authToken=... at publish time and never passed via argv. |
url_template | string | — | Override the download URL emitted into the postinstall script (templated). When unset, anodizer derives the URL from the release context. Only consulted in postinstall mode. |
on_error
A lifecycle hook block: before:, after:, on_error:, always:, or before_publish:. Each block carries a list of hook commands that run around the entire pipeline (not individual stages); which block a list sits under decides when it fires.
The key is hooks: in every block. The older post: spelling is still accepted, so after: { post: [...] } keeps working, with a deprecation warning. When a block sets a non-empty hooks: list and post:, the hooks: list runs and post: is ignored; an empty hooks: [] beside a non-empty post: list runs the post: commands.
| Field | Type | Default | Description |
|---|---|---|---|
hooks | list of (object | string) | — | Commands to run when the block fires. The older post: key is read as this list. |
post | list of (object | string) | — | Deprecated spelling of hooks: (anodizer before v0.4). Its commands run as the hooks: list, and it is ignored when hooks: is also set and non-empty. |
partial
| Field | Type | Default | Description |
|---|---|---|---|
by | string | — | How to split builds: "os" (by OS, default) or "target" (by full triple). "os" groups all arch variants for the same OS into one split job. "target" gives each unique target triple its own split job. The legacy goos spelling is accepted as a back-compat alias for os (folded at parse time, with a deprecation warning); imported configs keep loading. |
preflight
Top-level preflight: block.
| Field | Type | Default | Description |
|---|---|---|---|
strict | bool | false | Promote INDETERMINATE preflight outcomes to hard blockers. An indeterminate outcome is one where a probe could not reach a verdict — a 5xx, a 429 / rate-limit, a transport failure, or a response that hides the permission the publish path needs. By default those degrade to warnings so a transient upstream blip cannot abort a release whose credentials are actually valid; strict: true makes them abort the release (fail-closed). Definitive failures (credentials rejected, target missing) keep their required→blocker / optional→warning severity regardless of this setting.The global --strict flag does the same, and three more things this field does not do: a missing rollback scope becomes a blocker, a configured feature that would skip itself with a warning fails the run, and a template that fails to render fails the run (without --strict a publisher template render error logs a warning and keeps the raw text). |
publishers
| Field | Type | Default | Description |
|---|---|---|---|
args | list of string | — | Arguments passed to the publish command (supports templates). |
artifact_types | list of string | — | Artifact type filter: only publish artifacts of these types (e.g., "archive", "binary"). |
checksum | bool | — | Include checksums in published artifacts. |
cmd | string | — | Command to invoke for publishing. |
dir | string | — | Working directory for the publisher command. |
env | list of string | — | Environment variables passed to the publish command, as KEY=value strings. Entries render in order, so a later entry can read an earlier one. |
extra_files | list of (object | string) | — | Extra files to include in publishing (glob patterns with optional name override). |
ids | list of string | — | Build IDs filter: only publish artifacts from builds whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the publisher is skipped. Render failure hard-errors. Distinct from skip:, which expresses "always skip". An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
meta | bool | — | Include dist/metadata.json in published artifacts. The sibling dist/artifacts.json manifest is never published. |
name | string | — | Human-readable name for this publisher (used in logs). |
signature | bool | — | Include signatures in published artifacts. |
skip | 0 | 1 | bool | string | — | Template-conditional skip: skip this publisher when the value is, or a template renders, true or 1 (any letter case). Accepts bool or template string (e.g. "{{ if .IsSnapshot }}true{{ endif }}"). Accepts the legacy disable: spelling via serde alias for back-compat. |
templated_extra_files | list of object | — | Extra files whose contents are rendered through the template engine before publishing. Unlike extra_files which copy as-is, template variables like {{ Tag }} are expanded. |
pypis
PyPI publisher configuration.
Publishes the project's prebuilt binaries as native Python wheels — one py3-none-<platform> wheel per built target, with the platform tag derived by inspecting each binary (minimum glibc version for manylinux, Mach-O deployment target for macosx) — and uploads them via PyPI's legacy (twine-protocol) upload API. Optionally also builds and uploads a source distribution via maturin sdist. Each pypis[] entry produces one publish.
pypis:
- name: my-tool
requires_python: ">=3.7"
sdist: true
sdist_manifest: "pypi/"| Field | Type | Default | Description |
|---|---|---|---|
amd64_variant | "v1" | "v2" | "v3" | "v4" | — | x86_64 micro-architecture variant selector — v1 (baseline), v2, v3 (AVX2), or v4. When set, an amd64 binary carrying amd64_variant metadata becomes the win_amd64/manylinux…x86_64 wheel only when its variant matches; a binary with no variant metadata still matches (the baseline build). Default: v1. Typed as Amd64Variant, so any value outside v1..v4 is rejected at parse time. |
arm_variant | string | — | ARM version selector (e.g. "6", "7"). When set, a 32-bit ARM binary carrying arm_variant metadata becomes the wheel only when its variant matches; a binary with no variant metadata still matches. Does not affect aarch64/arm64 (64-bit ARM has no sub-variant). |
auth | "auto" | "oidc" | "token" | auto | Whether the upload authenticates with a long-lived API token or with GitHub Actions OIDC (PyPI Trusted Publishing). Default auto: a token when one is available, otherwise a Trusted-Publishing exchange when an OIDC context is present. |
author | string | — | Package author, emitted as the METADATA Author header. |
author_email | string | — | Package author email, emitted as the METADATA Author-email header. |
classifiers | list of string | — | Trove classifier lines (e.g. "Programming Language :: Rust"), one Classifier: METADATA header each. |
description | string | — | Templated long description written as the METADATA body (rendered on the PyPI project page). Falls back to the summary when unset. |
description_content_type | string | — | Description-Content-Type for the long-description body — how PyPI renders it (text/markdown, text/x-rst, text/plain). When a description is present and this is unset, defaults to text/markdown (the modern norm); without the header PyPI renders the body as raw plaintext. Omitted entirely when there is no description. |
homepage | string | — | Templated homepage URL, emitted as Project-URL: Homepage. Falls back to metadata.homepage (then Cargo.toml [package].homepage) when unset. |
id | string | — | Unique identifier for selecting this entry from the CLI (--id=...). |
ids | list of string | — | Build IDs filter: only include binaries whose crate is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the PyPI publisher entry is skipped. Render failure hard-errors. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
index_url | string | — | Templated twine upload endpoint URL. Default https://upload.pypi.org/legacy/ (the production PyPI upload API). Point it at TestPyPI to rehearse a release:pypis: - index_url: "https://test.pypi.org/legacy/"This is the twine upload target. It names no {owner, name} source repository — the name index_url keeps it distinct from the reserved repository meaning every git-based publisher uses. The legacy repository: spelling is still accepted via serde alias. |
keywords | list of string | — | Keywords list, emitted comma-separated in METADATA. |
license | string | — | Templated license expression (e.g. MIT, Apache-2.0), emitted as the METADATA License field. Falls back to metadata.license (then Cargo.toml [package].license) when unset. |
name | string | — | PyPI project name. May use any PEP 508 name form (My.Tool, my_tool); PyPI normalizes it per PEP 503 for index lookups and the wheel filename escapes it per PEP 427. Falls back to the crate name when unset. |
platform_tag_overrides | map | — | Per-target-triple wheel platform-tag overrides: <target triple> → explicit wheel platform tag. When a built target has an entry, its tag is used verbatim — binary inspection (the minimum glibc version for manylinux, the Mach-O deployment target for macosx) is skipped for that target. Every target without an entry keeps the auto-detected tag.The escape hatch for toolchains whose emitted minimum glibc version is stricter than the compatibility a project wants to advertise — e.g. setting aarch64-unknown-linux-gnu to manylinux_2_28 to match a maturin/PyO3 build environment when the binary's symbols imply a higher minimum.pypis: - platform_tag_overrides: aarch64-unknown-linux-gnu: manylinux_2_28_aarch64 |
project_urls | map | — | Arbitrary Project-URL label → URL map, one Project-URL: <label>, <url> METADATA header each (the PyPI sidebar links). Emitted in addition to the Homepage link derived from homepage; use this for Repository, Documentation, Changelog, Funding, etc. Rendered in sorted label order for a byte-stable wheel.pypis: - project_urls: Repository: "https://github.com/me/my-tool" Documentation: "https://docs.example.com" |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: true — PyPI is a Manager-group publisher whose uploads are one-way (a published filename can never be re-uploaded, even after deletion), so a failed publish aborts by default to avoid surprising the operator with a half-released version. Set to false to log failures but continue. |
requires_python | string | — | Requires-Python version specifier written into each wheel's METADATA (e.g. ">=3.7"). Purely declarative for a binary wheel — the shipped executable does not import Python — but pip honors it during resolution. Omitted when unset. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. (PyPI has no programmatic delete path anyway — rollback is warn-only — but the flag suppresses even that warning.) |
sdist | bool | false | Also build and upload a source distribution via maturin sdist. Default false. Requires sdist_manifest to point at the directory containing the project's pyproject.toml, and maturin on PATH.pypis: - sdist: true sdist_manifest: "pypi/" |
sdist_manifest | string | — | Templated directory containing the pyproject.toml that maturin sdist builds from, relative to the project root (e.g. "pypi/"). Required when sdist: true; unused otherwise. |
skip | 0 | 1 | bool | string | — | Skip this publisher. Accepts bool or template string. Accepts the legacy disable: spelling via serde alias for back-compat. |
skip_existing | bool | true | Tolerate the index rejecting a file that already exists (the twine --skip-existing semantics). Default true so a re-run of an already-published tag skips previously-uploaded files and does not fail the release. Set to false to make a duplicate upload a hard error. |
summary | string | — | Templated one-line Summary for the package METADATA. Falls back to the project-level metadata.description (and then the crate's Cargo.toml [package].description) when unset. |
targets | list of string | — | Target-triple allowlist: restrict the wheels to a subset of the built targets. When unset (the default), every built target becomes a wheel. When set, only binaries whose target triple appears in this list are built into wheels; the rest are silently skipped. Orthogonal to ids:: both filters apply (a binary must pass the ids filter AND, when this is set, be listed here). A listed triple that no selected build produces is a config error, and an explicit empty list (targets: []) is rejected — omit the field to publish every built target. A common use is excluding x86_64-pc-windows-gnu so it does not collide with the x86_64-pc-windows-msvc wheel on the shared win_amd64 platform tag. Example: targets: [x86_64-unknown-linux-gnu, x86_64-pc-windows-msvc]. |
token | string | — | API token for the upload (templated). Falls back to the PYPI_TOKEN env var, then MATURIN_PYPI_TOKEN, when unset. Sent as HTTP Basic auth with the literal username __token__ and NEVER logged. Unused when auth: oidc (Trusted Publishing creates its own short-lived token). |
release
| Field | Type | Default | Description |
|---|---|---|---|
discussion_category_name | string | — | GitHub Discussion category name for the release. |
draft | bool | — | When true, create the release as a draft (unpublished). |
exclude | list of string | — | Glob patterns matched against each release asset's file name; anodizer drops any asset whose name matches at least one glob before attaching it to THIS GitHub release only (a mirror configured elsewhere is unaffected). Use it to keep heavy sidecars (checksums, signatures, SBOMs) off the GitHub release while archives still attach. Composes with ids: (both filters apply). Unset or empty keeps everything.release: github: { owner: my-org, name: my-repo } exclude: [".sha256", ".sig", "*.cdx.json"] |
extra_files | list of (object | string) | — | Extra files to upload to the release beyond build artifacts. Paths / globs are resolved relative to the project root. .. segments are accepted, so an entry like ../sibling/dist/* will reach outside the project tree — security-conscious users should keep the entries inside the repo or canonicalise them before invoking the release pipeline. |
footer | object | string | — | Text appended to the release body (inline string, from_file, or from_url). REPLACES anodizer's default attribution footer; the two are never combined. Set to "" for no footer at all. |
full_changelog_link | bool | — | Append a derived **Full Changelog**: <compare-url> line to the release body, below the changelog and above the footer. The compare range is <previous tag>...<tag> on the repository this release publishes to. Suppressed automatically when no previous tag exists (a first release) or when the changelog body already carries such a line (changelog.use: github-native). Default: true.release: full_changelog_link: false # do not append the derived compare link |
gitea | object | — | Gitea repository to release to (owner and name, inferred from the origin remote when omitted). |
github | object | — | GitHub repository to release to (owner and name, inferred from the origin remote when omitted). |
gitlab | object | — | GitLab repository to release to (owner and name, inferred from the origin remote when omitted). |
header | object | string | — | Text prepended to the release body (inline string, from_file, or from_url). |
ids | list of string | — | Artifact IDs filter for uploads. Release-wide artifacts (checksums, source archive, extra files, metadata) always upload regardless of the filter, and derived artifacts (signatures, certificates, SBOMs) inherit the verdict of the artifact they derive from — a signature uploads iff the artifact it signs uploads. |
include_meta | bool | — | Upload dist/metadata.json as a release asset. The sibling dist/artifacts.json manifest is never uploaded — it stays local to the dist directory. |
make_latest | 0 | 1 | bool | string | — | Mark release as latest: true, false, "auto" (GitHub decides: the release is sent with make_latest: legacy), or a template rendered at publish time. The words true, false, 1, 0 and auto load in any letter case, quoted or unquoted; any other string is a template. A template that renders false, 0 or empty does not mark the release latest, auto lets GitHub decide, and true, 1 or any other render marks it latest.release: make_latest: "{{ not IsSnapshot }}" |
mode | string | — | Release mode: "keep-existing", "append", "prepend", or "replace". |
name_template | string | — | Release title template (supports templates). |
on_failure | "hold" | "rollback" | — | In-process failure policy: what anodizer release does after a release-pipeline failure. hold is the only accepted value, and it describes what the pipeline now does unconditionally — leave everything in place for forensics. Recovery is a re-run (publishers reconcile and self-skip, so an identical command converges on already-published state) or, for deliberate withdrawal, anodizer tag rollback. rollback is rejected when the config loads, because automatic rollback was removed; the field exists so a config carrying the removed policy is refused with an error and keeps no other meaning. Root-level policy: in workspace configs (lockstep or per-crate) the top-level release.on_failure governs the whole run, and setting it in a crate-level release: block is rejected when the config loads. |
preflight | object | — | How the release preflight treats a failed check. The release preflight runs before anything is built or published and asks the forge the release is created on whether this run can create it.release: preflight: fail_on_error: false # report a failed check as a warning and keep going |
prerelease | 0 | 1 | bool | string | — | Mark release as pre-release: true, false, or "auto" (inferred from the tag). The words true, false, 1, 0 and auto load in any letter case, quoted or unquoted; any other string is a load error.release: prerelease: auto |
provider | "github" | "gitlab" | "gitea" | — | Explicit publish target: the SCM provider (github, gitlab or gitea) whose release.<provider> block the publisher uses. The provider is the first of these that gives an answer:1. release.provider; 2. the top-level force_token; 3. the ANODIZER_FORCE_TOKEN environment variable; when it is unset or blank, GORELEASER_FORCE_TOKEN is read; both are trimmed (github, gitlab or gitea in any letter case; any other value gives no answer); 4. GITLAB_TOKEN set in the environment, or a GitLab token file: GitLab; 5. GITEA_TOKEN set in the environment, or a Gitea token file: Gitea; 6. when no forge variable or token file holds a token, the release blocks: every one naming gitlab: only gives GitLab, every one naming gitea: only gives Gitea; 7. GitHub.A token line in a listed env file (the list form of env_files) never picks the provider. Once the provider is chosen, its line is the last source of the run token, after --token, the provider's variables and its token file.Set it for cross-platform publishing, where the source repo lives on one provider (e.g. GitLab) and releases go to another (e.g. GitHub), or whenever more than one forge token is in the environment. release: provider: github github: owner: my-org name: my-app |
replace_existing_artifacts | bool | — | When true, replace existing release artifacts with the same name. A nightly run with nightly.tag_name set behaves as if this were true: the fixed tag is rolling, so every run after the first meets the assets its predecessor uploaded onto the same release. |
replace_existing_draft | bool | — | When true, replace an existing draft release. When false, an existing draft fails the release. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: true — a failure here aborts the release. Set to false to log failures but continue. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
skip | 0 | 1 | bool | string | — | Skip the release stage. Accepts bool or template string (e.g. "{{ if IsSnapshot }}true{{ endif }}" for conditional skip). Template strings are supported here. Accepts the legacy disable: spelling via serde alias for back-compat with imported configs (the legacy disable: spelling). |
skip_upload | 0 | 1 | bool | string | — | Skip uploading artifacts: true, false, or "auto" (skip for snapshots). Accepts bool or template string. |
tag | string | — | Override the release tag (template string). When set, this tag is used as the tag_name in the GitHub release API in place of the crate's tag_template. Useful in monorepo setups to strip a tag prefix (e.g. "{{ Tag }}" to publish v1.0.0 for the tag myapp/v1.0.0). A cross-platform publishing feature provided for free by anodizer. |
target_commitish | string | — | Target branch or SHA for the release tag. |
templated_extra_files | list of object | — | Extra files whose contents are rendered through the template engine before upload. Unlike extra_files which copy as-is, template variables like {{ Tag }} are expanded.Same path-traversal caveat as extra_files: .. segments reach outside the project tree. |
upload_concurrency | integer | — | Maximum number of asset-upload requests in flight simultaneously. Applies to asset uploads on every release forge (GitHub, GitLab, Gitea). GitHub's secondary rate-limit is triggered by burst traffic. Keeping this value low avoids tripping the limit even for releases with many artifacts. Default: 4. Override at runtime with ANODIZER_GITHUB_UPLOAD_CONCURRENCY. |
upload_pace | string | — | Minimum interval between successive asset-upload starts (a humantime string, e.g. "200ms", "1s", "0s"). Applies to asset uploads on every release forge (GitHub, GitLab, Gitea).This is a proactive pace that smooths the initial burst of upload requests, layered on top of upload_concurrency (the concurrency cap) and the reactive secondary-rate-limit backoff. With the concurrency cap alone, the first N uploads fire in the same instant — exactly the burst pattern that trips GitHub's secondary rate limit. Spacing each upload's start by this interval (with ±20% jitter so concurrent releases don't synchronise) makes the burst far less likely to trip the limit in the first place.Default: "200ms" — at the default concurrency of 4 this caps the initial start rate at ~5/s, which is below the burst threshold yet adds negligible wall-clock to a normal release (upload time is dominated by transfer; start-spacing adds little). Set to "0s" to disable pacing entirely (rely on the concurrency cap + reactive backoff). Override at runtime with ANODIZER_GITHUB_UPLOAD_PACE_MS (integer milliseconds; 0 disables).A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
use_existing_draft | bool | — | Reuse an existing draft release whose name matches the rendered name_template in place of creating a new one. |
retry
User-facing retry configuration block (retry: at config root).
All fields are optional in YAML; missing fields fall back to the defaults (10 attempts, 10s base delay, 5m cap on each delay, and a 15-minute max_elapsed budget for each publisher run).
| Field | Type | Default | Description |
|---|---|---|---|
attempts | integer | 10 | Total attempts (including the first). Default 10. Values < 1 are clamped up to 1 by the policy layer. |
delay | string | 10s | Initial delay before the second attempt. Default 10s. Subsequent delays grow exponentially (delay × 2^(n-2)) up to max_delay.A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
max_delay | string | 5m | Upper bound on any individual sleep between attempts. Default 5m. Without this cap, an exponential backoff with delay=10s would stretch attempt 9 to ~42 minutes.A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
max_elapsed | string | — | Cap on total retry wall-time. Each publisher run gets its own deadline: the moment the publisher starts plus this budget. Every retried request inside that run (an auth exchange, the publish request, a cleanup) shares that one deadline, and a second publisher starts a fresh one. A GitHub, GitLab or Gitea release run takes its deadline once when it starts, shared by its API calls and asset uploads. A retry outside both starts its own deadline when it begins. Retrying stops before a backoff sleep would pass the deadline, so a long transient storm fails with the last error, and an idempotent re-run can resume. When unset the budget is 15 minutes. A release whose CI job has a hard timeout should keep it below that timeout. A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
sboms
| Field | Type | Default | Description |
|---|---|---|---|
args | list of string | — | Command-line arguments (supports templates and $artifact, $document vars). |
artifacts | string | — | Which artifacts to catalog: "source", "archive", "binary", "package", "diskimage", "installer", "any" (default: "archive"). |
cmd | string | — | Command to run for SBOM generation. Defaults to syft when args is set; with neither cmd nor args, the built-in generator runs. |
documents | list of string | — | Output document path templates (supports templates). |
env | list of string | — | Environment variables to pass to the command, as KEY=VALUE strings. Order is preserved. Values are template-rendered before being set. |
id | string | — | Unique identifier for this SBOM config (default: "default"). |
ids | list of string | — | Filter by artifact IDs (ignored if artifacts="source"). |
skip | 0 | 1 | bool | string | — | Skip this SBOM config. Accepts bool or template string. Accepts the legacy disable: spelling via serde alias for back-compat. |
schemastore
Top-level schemastore: block. Shared fields here are defaults for every entry in schemas; a per-entry field overrides them (cascade).
| Field | Type | Default | Description |
|---|---|---|---|
commit_author | object | — | Commit author for the SchemaStore commit (defaults to git config). |
if | string | — | Tera condition; when it renders false, 0, no or empty (any letter case) the publisher is skipped. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
repository | object | — | Fork of SchemaStore/schemastore to push branches to and open the PR from. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
schemas | list of object | [] | The schema entries to register/refresh. |
skip | 0 | 1 | bool | string | — | Skip the whole publisher. Alias: disable. |
versioned | bool | — | Default for schemas[].versioned on every entry that does not set its own. When both are unset, false. |
signs
| Field | Type | Default | Description |
|---|---|---|---|
args | list of string | — | Arguments passed to the signing command (supports templates with ${artifact} and ${signature}). |
artifacts | string | — | Artifact types to sign: "none" (default), "all", "any", "archive", "binary", "checksum", "package", "installer", "diskimage", "macos_package", "snap", "source", "sbom" or "windows". none skips only this entry; a failing sibling entry still fails the stage. |
asset_name_template | string | — | binary_signs: only — override the release-asset name a binary signature uploads under.Renders the asset's BASE name; the suffix the signature: / certificate: template appended to the binary's own file name still carries over, so one template names both assets (app-1.0.0-linux-amd64 → app-1.0.0-linux-amd64.sig and app-1.0.0-linux-amd64.pem). Rendered in the same per-target scope an archive name_template renders under (Os, Arch, Target, the micro-architecture variants, CrateName, Binary).binary_signs: - artifacts: binary asset_name_template: "{{ Binary }}-{{ Version }}-{{ Target }}"Unset, the name is derived from the crate's archives: config — see the signing docs. |
authenticode | object | — | Authenticode (Windows PE/MSI) signing backend. When set, this sign config signs Windows artifacts in place via osslsigncode (Linux/cross) or signtool (Windows), and no detached cosign/gpg signature is written. The signing command, argv, timestamp URL, and artifact selector are all derived; supply only the cert (a secret). |
certificate | string | — | Certificate file to embed in the signature (Cosign bundle signing). |
cmd | string | — | Signing command to invoke (default: "cosign" or "gpg"). |
env | list of string | — | Environment variables passed to the signing command. |
id | string | — | Unique identifier for this sign config. |
ids | list of string | — | Build IDs filter: only sign artifacts from builds whose id is in this list. |
if | string | — | Template-conditional: skip this sign config when the gate renders false, 0, no or empty (any letter case). An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
output | 0 | 1 | bool | string | — | Capture and log stdout/stderr of the signing command. Accepts bool or template string (e.g., "{{ IsSnapshot }}"). |
signature | string | — | Signature output filename template (supports templates). |
stdin | string | — | Content written to the signing command's stdin (e.g. a passphrase), rendered as a template ({{ Env.GPG_PASSPHRASE }}). The rendered value is a credential: leading and trailing whitespace is removed, and a template that does not render is an error naming signs[<id or index>].stdin without the template's text. |
stdin_file | string | — | Path to a file whose content is written to the signing command's stdin. |
verify | object | — | Post-sign verification knobs. Verification is ON by default wherever its inputs are derivable (keyed cosign, keyless cosign on GitHub Actions, gpg); set verify: { enabled: false } to disable, or supply the keyless certificate identity / issuer when they cannot be derived from the environment. |
snapshot
| Field | Type | Default | Description |
|---|---|---|---|
version_template | string | — | Version string template for snapshot builds (e.g., "{{ Commit }}-SNAPSHOT"). Accepts the deprecated name_template: alias (renamed to version_template): a non-empty name_template is folded into version_template. A deprecation warning is emitted at config-load time when the alias is hit (see apply_snapshot_legacy_aliases). |
source
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | — | When true, generate a source code archive for the release. |
files | list of object | [] | Extra files to include in the source archive. Accepts strings (glob patterns) or objects with src, dst, info and strip_parent keys. |
format | string | — | Archive format for the source tarball: tar.gz, tgz, tar, or zip (default: tar.gz). |
name_template | string | — | Filename template for the source archive (supports templates). |
prefix_template | string | — | Prefix prepended to all paths inside the archive (supports templates). Defaults to name_template value. Use this to set a different prefix than the archive name. |
srpms
| Field | Type | Default | Description |
|---|---|---|---|
bins | map | — | Map of binary name → install path declared in the spec's %files section. Each entry tells the generated .spec which installed file the package owns. When omitted, each binary produced by the build for this crate defaults to %{_bindir}/<name> (i.e. /usr/bin/<name>, the RPM-idiomatic location for a built binary). Provide this only to override the install path or to declare extra owned paths. The %files section lists the entries in alphabetical order of binary name. |
build_host | string | — | Override the build host recorded in the RPM header. Useful for reproducible builds where the actual hostname leaks build-env detail. |
compression | string | — | Compression algorithm (gzip, xz, zstd, none). |
contents | list of object | — | Additional contents to include in the source RPM. Takes the same entries as crates[].nfpms[].contents; the SRPM-style source: / destination: / type: keys are accepted as aliases. |
description | string | — | Package description. |
docs | list of string | — | Documentation files to include. |
enabled | bool | — | Enable source RPM generation. Default: false. |
epoch | string | — | RPM epoch. |
file_name_template | string | — | Output filename template. |
group | string | — | RPM group. |
license | string | — | License identifier. |
license_file_name | string | — | License file name to include. |
maintainer | string | — | Package maintainer. |
package_name | string | — | Package name (default: project_name). |
packager | string | — | RPM packager field. |
posttrans | string | — | %posttrans scriptlet — executed after all packages in the transaction have been installed. Path to a script file. |
prefixes | list of string | — | Filesystem prefixes the package may install to (RPM Prefix: tag). Each entry becomes one Prefix: directive — relocatable RPMs need at least one prefix declared. |
prerelease | string | — | Prerelease suffix appended to the version (e.g. rc1, beta2). |
pretrans | string | — | %pretrans scriptlet — executed on the package transaction before any package in the transaction is installed. Path to a script file. |
section | string | — | RPM section. |
signature | object | — | RPM signature configuration. Takes the same keys as crates[].nfpms[].rpm.signature. |
skip | 0 | 1 | bool | string | — | Skip this config. Accepts bool or template string. |
spec_file | string | — | Path to the RPM spec file template. |
summary | string | — | Summary line. |
url | string | — | Homepage URL. |
vendor | string | — | Package vendor. |
version_metadata | string | — | Build metadata appended to the version (e.g. git commit hash). |
tag
| Field | Type | Default | Description |
|---|---|---|---|
branch_history | string | — | Branch history mode for determining the previous tag: "full" or "last". |
bump_minor_pre_major | bool | — | While the current major version is 0, demote a conventional breaking change (feat!: / BREAKING CHANGE) from a major bump to a minor bump (e.g. 0.5.0 → 0.6.0, where the bump would otherwise give 1.0.0). Honors the SemVer rule that anything may change in the 0.y.z range. An explicit #major/#minor token, a custom_tag, or a manually-ahead Cargo.toml version always wins over this demotion. No-op once a real tag reaches 1.x. Default false. |
bump_patch_for_minor_pre_major | bool | — | While the current major version is 0, demote a conventional feature (feat:) from a minor bump to a patch bump (e.g. 0.5.0 → 0.5.1, where the bump would otherwise give 0.6.0). Independent of bump_minor_pre_major. An explicit token / custom_tag / ahead Cargo.toml always wins. No-op at 1.x. Default false. |
custom_tag | string | — | Custom version tag. When set, no auto-increment happens. |
default_bump | string | — | Default bump when a commit range carries no explicit # token and no conventional-commit marker: "major", "minor", "patch", or "none". Defaults to "none" — a range of only chore/docs/style/refactor/test/ build/ci commits produces no release (the conventional-commit contract). Set "patch"/"minor" to cut a release on every range regardless of type. |
force_without_changes | bool | — | When true, create a new tag even if no commits have changed since the last tag. |
force_without_changes_pre | bool | — | Like force_without_changes but only for pre-release versions. |
git_api_tagging | bool | — | When true, use the GitHub/GitLab API for tagging. When false, the git CLI creates the tag. Mutually exclusive with sign on a pushed tag: the API creates the tag object server-side and cannot apply your local GPG/SSH signature, so anodizer errors and ships no silently-unsigned tag. Use local tagging (drop git_api_tagging) to create signed tags. |
initial_version | string | — | Version string to use when no previous tag exists (default: "0.1.0"). |
major_string_token | string | — | Conventional commit token triggering a major bump (default: "major"). |
minor_string_token | string | — | Conventional commit token triggering a minor bump (default: "minor" or "feat"). |
none_string_token | string | — | Conventional commit token suppressing a version bump entirely (default: "none"). |
patch_string_token | string | — | Conventional commit token triggering a patch bump (default: "patch" or "fix"). |
prerelease | bool | — | When true, apply a pre-release suffix to the generated version. |
prerelease_suffix | string | — | Suffix appended to pre-release versions (e.g., "beta"). |
push | bool | — | When true, anodizer tag also pushes the version-sync bump commit to the release branch (atomically with the tag) as well as the tag. CLI --push / --no-push override this. Default false preserves the "push the tag, inspect the branch locally before pushing" workflow. |
release_branches | list of string | — | Branch name patterns (supports wildcards) that trigger releases (default: ["master", "main"]). |
sign | bool | — | When true, anodizer creates the version tag with git tag -s (a cryptographically signed annotated tag). The default is git tag -a (unsigned annotated tag). The signing key and method are taken entirely from the user's git configuration (user.signingkey, and gpg.format to select GPG vs SSH signing) — anodizer adds no key field of its own, so both GPG and SSH signing work with no anodizer-specific setup. Applies in every workspace mode: single-crate, lockstep, and per-crate — every tag anodizer cuts is signed when this is enabled. The CLI --sign / --no-sign flags override this per invocation. Default (unset or false) leaves the existing unsigned annotated-tag behavior unchanged.Mutually exclusive with git_api_tagging on a pushed tag: the GitHub API creates the tag object on the remote and cannot apply a local signature, so combining the two on a push is a hard error. Signing works with local tagging and with --push-tags-only (both cut the tag locally first). |
skip_ci_on_bump | bool | — | Append [skip ci] to the version-sync bump commit subject.Off by default. Only enable with a workflow_run-triggered release workflow: [skip ci] on the bump commit (which becomes the tag target) ALSO suppresses an on: push: tags: release trigger, so enabling this with a tag-push-triggered release silently skips the release. Leave off for the tag-push pattern; enable for the workflow_run pattern to skip the (already crate-gated, harmless) redundant CI re-run. |
tag_context | string | — | Source for determining the previous tag: "repo" (default) or "branch". |
tag_post_hooks | list of (object | string) | — | Commands to run after anodizer tag successfully creates the tag (and, when a push was requested, pushes it). Env and template vars same as tag_pre_hooks. |
tag_pre_hooks | list of (object | string) | — | Commands to run before anodizer tag creates the tag. Useful for updating lockfiles or committing sibling changes that must be part of the tagged commit. Env: ANODIZER_CURRENT_TAG, ANODIZER_PREVIOUS_TAG are set; template vars {{ Tag }}, {{ PreviousTag }}, {{ Version }}, {{ PrefixedTag }} are available. |
tag_prefix | string | — | Prefix prepended to version tags (e.g., "v" produces "v1.2.3"). Also names the tag family every crate that omits tag_template releases under: a crate with no template of its own and no defaults.crates.tag_template derives <tag_prefix>{{ Version }} at config load, so tag, release, bump and changelog all agree on the same tag.tag: tag_prefix: "rel-"crates: - { name: core, path: crates/core } # tag family rel-{{ Version }} - { name: cli, path: crates/cli } # tag family rel-{{ Version }} |
verbose | bool | — | When true, print verbose tag calculation output. |
template_files
Configuration for a template file that is rendered through the template engine and placed in the dist directory as a release artifact.
All rendered template files are uploaded to the release by default. Both src and dst paths support template rendering.
| Field | Type | Default | Description |
|---|---|---|---|
dst | string | — | Destination filename, prefixed with the dist directory. Templates: allowed. |
id | string | — | Identifier for this template file entry (default: "default"). |
mode | string | — | File permissions in octal notation as a string, e.g. "0755" (default: "0655"). Quote it so YAML does not read it as a decimal number. |
skip | 0 | 1 | bool | string | — | Skip this entry when the value is, or a Tera template renders, true or 1 (any letter case); false, 0 or empty keeps it (e.g. '{{ if eq .Os "windows" }}true{{ end }}'). Works like skip: in changelog:, checksum: and the publishers. |
src | string | — | Source template file path. The file contents are rendered through the template engine. Templates: allowed (in path itself). |
uploads
| Field | Type | Default | Description |
|---|---|---|---|
checksum | bool | — | Include checksums in uploaded artifacts. |
checksum_header | string | — | Header name for the SHA256 checksum of the artifact. |
client_x509_cert | string | — | Path to PEM-encoded client X.509 certificate for mTLS. |
client_x509_key | string | — | Path to PEM-encoded client X.509 key for mTLS. |
custom_artifact_name | bool | — | When true, use the artifact name as-is (don't append to target URL). |
custom_headers | map | — | Custom HTTP headers (each value is template-expanded). |
exclude | list of string | — | Glob patterns matched against each artifact's file name; anodizer drops any artifact whose name matches at least one glob from THIS upload target only. Use it to keep heavy sidecars (checksums, signatures, SBOMs) off a given endpoint while archives still upload. Composes with ids: and exts: (all filters apply). Unset or empty keeps everything.uploads: - name: mirror target: "https://mirror.example.com/{{ .ArtifactName }}" exclude: [".sha256", ".sig", "*.cdx.json"] |
extra_files | list of (object | string) | — | Extra files to include in uploading. |
extra_files_only | bool | — | Upload only extra files, skip normal artifacts. |
exts | list of string | — | File extension filter: only upload artifacts with these extensions. |
ids | list of string | — | Build IDs filter: only upload artifacts whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the upload is skipped. Render failure hard-errors. The uploads[].if: conditional gate. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
meta | bool | — | Include dist/metadata.json in uploaded artifacts. The sibling dist/artifacts.json manifest is never uploaded. |
method | string | — | HTTP method: PUT or POST (default: PUT). |
mode | string | — | Upload mode: "archive" (default) or "binary". |
name | string | — | Name of this upload entry. Required: an entry without one is skipped. It keys the credential env vars UPLOAD_{NAME}_USERNAME and UPLOAD_{NAME}_SECRET, uppercased with each - turned into _. |
overwrite | bool | — | Re-upload an artifact even when an identical one already exists at the target path (default: false).With the default, a re-run that finds the same version's artifact already uploaded with a matching SHA-256 records an idempotent SKIP and does not PUT it again, so re-running a partially-failed release is safe. A path that already holds a different artifact for the same version still hard-errors (immutable-version drift) unless overwrite is set. With overwrite: true, every artifact is PUT unconditionally. |
password | string | — | Password for HTTP basic auth. Strongly prefer {{ Env.UPLOAD_PASSWORD }} (or any other env-var template) over an in-config literal — plaintext values here are NOT redacted from dry-run output and will end up in dist/config.yaml when the pipeline runs with --dry-run / --snapshot. Resolution order: rendered password template → env UPLOAD_{NAME}_SECRET. |
required | bool | — | Override whether this upload failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this upload's artifacts in place and sends no server-side DELETE. Default false. |
signature | bool | — | Include signatures in uploaded artifacts. |
skip | 0 | 1 | bool | string | — | Skip this upload when the value is, or a template renders, true or 1 (any letter case). |
target | string | — | Target URL template (supports template variables like {{ ProjectName }}, {{ Version }}). |
trusted_certificates | string | — | Path to PEM-encoded trusted CA certificates. |
username | string | — | Username for HTTP basic auth. Resolution order: rendered username template → env UPLOAD_{NAME}_USERNAME. Set this to a literal value or a {{ Env.X }} template. |
upx
| Field | Type | Default | Description |
|---|---|---|---|
args | list of string | [] | Extra arguments passed to UPX (e.g., ["-9", "--brute"]). |
binary | string | upx | UPX executable path or name (default: "upx"). |
brute | bool | — | Use brute-force compression (--brute flag). Very slow but produces smallest output. |
compress | string | — | UPX compression level string (e.g., "1"-"9", "best"). Maps to --compress flag. |
enabled | 0 | 1 | bool | string | — | Whether to compress binaries with UPX. Accepts a bool or a template string that evaluates to a bool. |
id | string | — | Unique identifier for this UPX config. |
ids | list of string | — | Build IDs filter: only compress binaries from builds whose id is in this list. |
lzma | bool | — | Use LZMA compression (--lzma flag). |
required | bool | false | When true, fail the build if UPX is not found. |
targets | list of string | — | Target triples to compress binaries for (empty means all targets). |
verify_release
Top-level verify_release: block.
See the module-level docs for the verification lifecycle. The gate is a no-op unless enabled: true.
| Field | Type | Default | Description |
|---|---|---|---|
assert_assets | bool | true | Assert that every produced artifact has a matching uploaded asset on the published release, and that every signature / certificate / SBOM asset the resolved signs: / sboms: config demands exists there too (derived from config + the artifact set, so a sign or SBOM stage that silently produced nothing still fails the gate with the exact missing names; intentional skips — if: falsy, skip: truthy, --skip=sign — create no expectations). Default true (no extra config: anodizer already knows the produced set and can fetch the release's asset list). Independent of Docker and the network smoke-test. |
assert_landing | bool | true | Assert that every publisher that succeeded this run is actually VISIBLE upstream: each published crate version is visible on the crates.io sparse index, each npm package version is visible on its registry, each uploaded PyPI wheel or source distribution is listed by the index it went to, each uploaded blob object exists in its bucket, each uploaded snap is live in the Snap Store's channel map (catching a manual-review hold that parked the revision outside every channel), and each docker image tag the run pushed answers a registry manifest GET at the digest the push recorded. Default true (no extra config: the run's own publish report and artifact set already carry every coordinate the probes need). Publishers that did not run — or did not succeed — are skipped, as is an image the run built without pushing. A target the registry has not served yet is re-asked (5s backoff doubling to a 30s cap) inside ONE 12-minute window shared by the whole sweep, shortened whenever retry.max_elapsed leaves less than that; an absence is reported when the window closes. |
enabled | bool | false | Whether to run the post-release verification gate at all. Default false — the gate is opt-in because it needs the published release to already exist (it runs after publish) and, for install-smoke, a Docker daemon. |
glibc_ceiling | string | — | glibc version ceiling, e.g. "2.36". When any glibc-linked .deb requires a glibc NEWER than this ceiling, the gate reports it and exits non-zero. Unset (the default) disables the libc check entirely. musl binaries have no glibc requirement and are skipped. |
install_smoke | object | — | Per-package install smoke-test images. When unset, smoke-testing is off. When present, each package type that produced an artifact is installed in its (configured or default) container and <bin> --version is run. |
workspaces
A workspace represents an independent project root within a monorepo. Each workspace has its own crates, changelog, and release configuration, allowing independently-versioned components that aren't Cargo workspace members.
| Field | Type | Default | Description |
|---|---|---|---|
after | object | — | Hooks run after this workspace's pipeline completes. |
before | object | — | Hooks run before this workspace's pipeline starts. |
binary_signs | list of object | [] | Binary-specific signing configs (same shape as signs but only for binary artifacts). The artifacts field on each entry is constrained at parse time to binary / none (or omitted) — a broader filter on binary_signs would silently match nothing because the loop only iterates Binary artifacts. Constraint lives in deserialize_binary_signs. |
changelog | object | — | Changelog configuration for this workspace. |
crates | list of object | [] | Crates belonging to this workspace. |
env | list of string | — | Environment variables scoped to this workspace. List of KEY=VALUE strings. Order is preserved. Values are template-rendered at pipeline startup. |
name | string | — | Workspace identifier used in logs and template variables. |
signs | list of object | [] | Signing configurations for binaries, archives, and checksums. |
skip | list of string | [] | Pipeline stages to skip when releasing this workspace. Stage names match the CLI --skip flag (e.g., announce, publish). |
crates[].archives
| Field | Type | Default | Description |
|---|---|---|---|
allow_different_binary_count | bool | — | Allow different binary counts across targets. Default false (warn on mismatch). |
binaries | list of string | — | Binary names to include (defaults to all binaries from matched builds). |
builds_info | object | — | File permissions applied to binaries in archives. |
completions | object | — | Turnkey shell-completion generation: auto-generate (or harvest, or copy) completion files and bundle them into every archive produced by this entry. Set at most one of the three modes: generate, from_build_out or copy; with none set, nothing is generated. |
files | list of (object | string) | — | Extra files to include in the archive (glob patterns, or objects with src, dst, info and strip_parent keys). |
format_overrides | list of object | — | Per-OS format overrides for this archive config. |
formats | list of string | — | Archive formats: tar.gz, tar.xz, tar.zst, tar, zip, gz, xz, or binary. gz and xz are single-file compressors — supplying multiple input files errors. Plural list; one archive per format is produced for each target. |
hooks | object | — | Pre/post archive hooks (before/after). |
id | string | — | Unique identifier for cross-referencing this archive from other configs. Defaults to "default" so a parse->serialise->reparse round-trip is stable (the value is stored verbatim, with no Option wrapper). |
ids | list of string | — | Build IDs filter: only include artifacts from builds whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the archive entry is skipped entirely (no archives produced for this id). Render failure hard-errors. "Filter artifacts with if statements" is listed as a blanket promise — anodizer states it explicitly to keep imported configs portable). An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
manpages | object | — | Turnkey man-page generation: auto-generate (or harvest, or copy) man pages and bundle them into every archive produced by this entry. Set at most one of the three modes: generate, from_build_out or copy; with none set, nothing is generated. |
meta | bool | — | When true, create archive with no binaries (metadata-only). |
name_template | string | — | Archive filename template (supports templates, e.g., "{{ ProjectName }}{{ Version }}{{ Os }}_{{ Arch }}"). |
strip_binary_directory | bool | — | Strip binary parent directory in archive (place binaries at archive root). |
templated_files | list of object | — | Templated files scoped to this archive entry. Rendered per-archive (so each entry's dst: and contents see .Os, .Arch, .Target, .Format, etc.) and packed into the archive at the rendered dst: path. The archives[].templated_files: field. |
wrap_in_directory | 0 | 1 | bool | string | — | When set, wrap archive contents in a top-level directory. Accepts true (use archive stem as directory name), false (no wrapping), or a string template for a custom directory name. An unquoted 1 / 0 is true / false; a quoted "1" is a directory name. |
crates[].dockers_v2
Docker V2 configuration — the canonical Docker build API.
Notable fields:
images+tags, two lists that together name every pushed referenceannotationsmap for OCI annotations (--annotation)build_argsmap for build-time variablesskipas a bool or a template for conditional opt-outsbomas a bool or a template; whentrueor1, adds--attest=type=sbomto buildxflagsfor arbitrary extradocker buildflagsplatformsis the only target selector — no per-arch field overrides | Field | Type | Default | Description | |-------|------|---------|-------------| |annotations| map | — | OCI annotations to apply via--annotation key=valueflags.
On a multi-platform build a key is written to the image index (index:key=value) unless it already names a buildx scope: a comma-separated list ofindex,manifest,index-descriptorandmanifest-descriptor, each optionally platform-qualified, as inmanifest:key,index,manifest:keyormanifest[linux/amd64]:key. A prefix holding any other entry is part of the key and is scoped to the index too. A single-platform build passes every key as written. | |build_args| map | — | Build arguments passed as--build-arg KEY=VALUE.
Each value is template-expanded and forwarded verbatim to buildx (one argv token per pair, no shell tokenization). Prefer{{ Env.VAR }}over raw user-config strings for secrets — buildx records build-args in image history by default, so plaintext values here propagate into the image metadata.
A key naming a globalARG(one declared before the firstFROM) also replaces thatARG's default when resolving the base image behind{{ BaseImage }}and{{ BaseImageDigest }}, when its value renders non-empty. Build args render before the base image resolves, so they cannot reference{{ BaseImage }}themselves. | |dockerfile| string | — | Path to the Dockerfile relative to the project root. | |extra_files| list of string | — | Extra files to copy into the Docker build context. | |flags| list of string | — | Arbitrary extra flags passed to the docker build command. | |hooks| object | — | Pre/post hooks for this dockers_v2 config. Each hook accepts the samecmd/dir/env/outputshape as build/archive hooks.prehooks run after the staging directory is prepared but beforedocker buildx build;posthooks run after the image digest is captured. Hook commands, working directories, and env values are template-expanded; in addition to the standard template variables, hooks see:
-{{ Images }}— list ofimage:tagreferences for this build. Iterate via{% for img in Images %}{{ img }}{% endfor %}to mirror a list exposure of the same field;{{ Images \| join(sep=",") }}reproduces a flat comma-separated string for legacy templates. -{{ Dockerfile }}— path to the rendered Dockerfile -{{ ContextDir }}— path to the buildx context staging directory -{{ Digest }}— the digest the registry stores for the build (post hooks only): the image manifest single-platform, the image index multi-platform. Read from buildx's--metadata-file(containerimage.digest), or frompodman push --digestfileunderuse: podman. A build that exports no image has no digest, and a post hook that needs one then fails the build -{{ BaseImage }}/{{ BaseImageDigest }}— final-stage base image (theBaseImage/BaseImageDigestoverlay) | |id| string | — | Unique identifier for this Docker V2 config. | |ids| list of string | — | Build IDs filter: only include binary artifacts whose metadataidis in this list. | |images| list of string |[]| Base image names (e.g., ["ghcr.io/owner/app"]). Combined withtagsto form full references. | |labels| map | — | OCI labels to apply to the image via--label key=valueflags. | |oci_labels| 0 | 1 | bool | string | — | Auto-inject the standard predefinedorg.opencontainers.image.*labels (created, source, revision, version, title, description, licenses, url, documentation, vendor), derived from project/git/Cargo context. Default ON; setoci_labels: falseto opt out. Each auto-label is emitted only when its value is derivable, and any key the user also supplies inlabels:wins (the auto value never clobbers an explicit user label).createdis derived fromSOURCE_DATE_EPOCHfor byte-reproducibility (never wall-clock) and is omitted when no reproducible source date is resolvable. | |platforms| list of string | — | Target platforms for multi-arch builds (e.g., ["linux/amd64", "linux/arm64"]). | |retry| object | — | Retry configuration for docker push operations. | |sbom| 0 | 1 | bool | string | — | Adds--attest=type=sbomto the buildx build when the value is, or a template renders,trueor1(any letter case). Default:true. A snapshot run never adds it. | |skip| 0 | 1 | bool | string | — | Skip this docker build entirely when the value is, or a template renders,trueor1(any letter case). Accepts the legacydisable:spelling via serde alias for back-compat. | |tags| list of string |[]| Tag suffixes (e.g., ["latest", "{{ Version }}"]). Each image is tagged with each tag. | |use| string | — | Docker backend for build commands:"buildx"(default) or"podman".
The default"buildx"invokesdocker buildx buildwith the full set of BuildKit features (multi-platform, attestations,--rewrite-timestamp, SBOM, OCI exporter). Settinguse: podmanswaps the binary topodman buildand drops every buildx-only flag. The docker stage fails an entry that combinesuse: podmanwithsbomreading true outside a snapshot (sbomdefaults totrue, so setsbom: false), or with a--rewrite-timestamp,--sbom,--provenance,--attest,--output,--cache-fromor--cache-toflag, because plain podman does not recognise them. Any value other thanbuildxorpodmanfails the same way.
Linux-only. On a macOS or Windows host the docker stage fails an entry withuse: podmanwith an error naming the entry, before anypodmancommand runs.check configdoes not check the host. |
crates[].docker_manifests
Deprecated: prefer dockers_v2, which produces multi-arch manifests from its platforms: field. docker_manifests is kept so imported configs still load, and for stitching together manifest lists from images that were not built by dockers_v2 in the same run.
| Field | Type | Default | Description |
|---|---|---|---|
create_flags | list of string | — | Extra flags for docker manifest create. |
id | string | — | Unique identifier for this manifest config. |
image_templates | list of string | [] | Image references to include in the manifest. |
name_template | string | — | Template for the manifest name, e.g. "ghcr.io/owner/app:{{ Version }}". |
push_flags | list of string | — | Extra flags for docker manifest push. |
retry | object | — | Retry configuration for manifest push (handles transient registry errors). |
skip_push | 0 | 1 | bool | string | — | Skip push: true, false, "auto" (skip for prereleases), or a template rendered at run time. The words true, false, 1, 0 and auto load in any letter case, quoted or unquoted; any other string is a template.skip_push: "{{ IsSnapshot }}" |
use | string | — | Docker backend for manifest commands: "docker" (default) or "podman"; any other value (including "buildx") fails the docker stage. The "podman" backend is Linux-only: on a macOS or Windows host the docker stage fails before any podman command runs. check config does not check the host. |
crates[].docker_digest
Controls docker image digest file creation.
After each docker image push, a digest file (containing the sha256 digest) is written to the dist directory. This config controls whether that happens and how the files are named.
| Field | Type | Default | Description |
|---|---|---|---|
name_template | string | — | Template for the digest artifact filename. Default: tag-based naming (e.g., "ghcr.io_owner_app_v1.0.0.digest"). |
skip | 0 | 1 | bool | string | — | Disable docker digest artifact creation when the value is, or a template renders, true or 1 (any letter case). Accepts the legacy disable: spelling via serde alias for back-compat. |
crates[].nfpms
| Field | Type | Default | Description |
|---|---|---|---|
amd64_variant | list of ("v1" | "v2" | "v3" | "v4") | — | amd64 microarchitecture variant filter (["v1"], ["v2", "v3"], etc.), set via the amd64_variant: key. When set, only amd64 binaries with amd64_variant matching one of the listed values are included. The legacy goamd64: spelling is accepted via serde alias for back-compat with imported configs. When unset, all amd64 variants are included (no filtering). Each entry is typed as Amd64Variant, so any value outside v1..v4 is rejected when the config is parsed. |
apk | object | — | APK-specific configuration. |
archlinux | object | — | Archlinux-specific configuration. |
bin_alias | string | — | Rename the installed binary inside the package only. When set, the auto-emitted binary content entry is installed under this name (in bindir) in place of the built file's name; the archive/build output is untouched. Use this to resolve Debian/RPM name clashes — e.g. fd ships its binary as fdfind in the Debian package while the tarball keeps fd. Templated. |
bindir | string | — | Installation directory for binaries (default: /usr/bin). |
changelog | string | — | Path to a YAML-format changelog file for deb/rpm packages. |
conflicts | list of string | — | Packages this package conflicts with. |
contents | list of object | — | Files to include in the package beyond the main binary. |
deb | object | — | Deb-specific configuration. |
dependencies | map | — | Runtime package dependencies keyed by format (e.g., {"deb": ["libc6"], "rpm": ["glibc"]}). |
description | string | — | Package description (multiline supported). |
epoch | string | — | Package epoch for versioning (integer as string). |
file_name_template | string | — | Package filename template (supports templates). |
formats | list of string | [] | Package formats to produce: deb, rpm, apk, archlinux, termux.deb, ipk, msix (at least one required). |
homepage | string | — | Project homepage URL. |
id | string | — | Unique identifier for cross-referencing this nFPM config. |
ids | list of string | — | Build IDs filter: only include artifacts from builds whose id is in this list. Accepts the deprecated builds: spelling via serde alias for back-compat with imported configs (the legacy builds key marked deprecated, aliasing ids). |
if | string | — | Template-conditional: skip this nfpm config when the gate renders false, 0, no or empty (any letter case). Conditional-skip gate. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
ipk | object | — | IPK-specific configuration (OpenWrt packages). |
libdirs | object | — | CGo library installation directories (header, carchive, cshared). |
license | string | — | SPDX license identifier (e.g., "MIT", "Apache-2.0"). |
maintainer | string | — | Package maintainer in Name <email> format. |
meta | bool | — | Whether this is a meta-package (no files, only dependencies). |
msix | object | — | MSIX-specific configuration (Windows app packages). Only consumed when formats includes msix. nfpm requires publisher, properties.logo, and at least one applications entry; everything else has derived defaults.msix: publisher: "CN=My Company, O=My Company, C=US" properties: logo: assets/logo.png applications: - id: MyApp executable: myapp.exe |
mtime | string | — | Default modification time for files in the package. |
overrides | map | — | Per-format setting overrides (e.g., {"deb": {compression: "xz"}}). |
package_name | string | — | Package name (defaults to crate name). |
prerelease | string | — | Prerelease version suffix. |
priority | string | — | Package priority (e.g. "optional", "required"). |
provides | list of string | — | Virtual packages provided by this package. |
recommends | list of string | — | Packages recommended (soft dependency) by this package. |
release | string | — | Package release number. |
replaces | list of string | — | Packages this package replaces (for upgrade paths from old package names). |
rpm | object | — | RPM-specific configuration. |
scripts | object | — | Package lifecycle scripts (preinstall, postinstall, preremove, postremove). |
section | string | — | Package section (e.g. "utils", "devel"). |
suggests | list of string | — | Packages suggested (weaker than recommends) by this package. |
templated_contents | list of object | — | Extra file contents whose source files are Tera-rendered before packaging. Each entry mirrors contents; the difference is that at stage time the file at src is read, rendered through the template engine, written to a temp file, and then included in the package at dst using the temp file as the real source. Useful for shipping config files with templated values (version, commit, maintainer, etc.). |
templated_scripts | object | — | Lifecycle scripts whose script-file bodies are Tera-rendered before packaging Each path is read, rendered through the template engine, written to a temp file, and used as the real script. If a field is set on both scripts and templated_scripts, the templated version wins. |
umask | integer | — | File permission umask. Accepts a YAML int (18), an octal-prefixed string ("0o022"), or a leading-zero octal string ("022"). |
vendor | string | — | Package vendor name — the distributing entity recorded in the rpm/deb Vendor field. When unset, derived from the crate's first Cargo.toml [package].authors entry with any <email> suffix stripped (e.g. "Ada Lovelace <ada@x>" → "Ada Lovelace"). |
version_metadata | string | — | Version metadata (e.g. git commit hash). |
crates[].publish
| Field | Type | Default | Description |
|---|---|---|---|
aur | object | — | AUR (Arch User Repository) binary package publishing configuration. |
aur_source | object | — | AUR source package publishing configuration (source-only PKGBUILD; no -bin package). |
cargo | object | — | Publish to crates.io. Presence opts in; use cargo: { skip: true } to opt out. |
chocolatey | object | — | Chocolatey package publishing configuration. |
homebrew | object | — | Homebrew formula publishing configuration. |
homebrew_cask | object | — | Homebrew Cask for this crate (macOS .app bundles and binaries), with the same fields as a top-level homebrew_casks: entry. Beside a homebrew: formula block the cask goes into the formula's tap in the same commit, unless its own repository: names a different tap; without one it is pushed to its own repository:. homebrew.cask: is the same setting; set one of the two. |
krew | object | — | Krew (kubectl plugin manager) manifest publishing configuration. |
nix | object | — | Nix derivation publishing configuration. |
on_error | list of (object | string) | — | Hooks that fire once per FAILED publisher. Each entry is a standard hook (cmd / dir / env / output), and its templates can also read {{ .Publisher }}, {{ .Error }}, {{ .Version }}, {{ .Tag }}, {{ .Group }} (Assets/Manager/Submitter), {{ .Required }}, {{ .RolledBack }} — always false during a release, which never withdraws anything on its own; withdrawal is anodizer tag rollback — and {{ .RunReport }}, the path of this run's already-written dist/run-<id>/report.json (per-publisher outcomes including rollback results; empty in snapshot/dry-run or when the report could not be persisted). The same values are also exported to the hook process as environment variables: ANODIZER_PUBLISHER, ANODIZER_ERROR, ANODIZER_VERSION, ANODIZER_TAG, ANODIZER_GROUP, ANODIZER_REQUIRED, ANODIZER_ROLLED_BACK, ANODIZER_RUN_REPORT. A hook's own failure is logged as a warning and never changes the release outcome.Security: the rendered cmd string is parsed by sh -c, and {{ .Error }} carries untrusted remote text (HTTP error bodies, git stderr) — interpolating it into cmd lets crafted error content break quoting and execute. Read untrusted values from the env vars instead ($ANODIZER_ERROR), and pass anodizer notify --raw so the text is sent literally with no Tera rendering. The outbound notification body is secret-redacted by default, so a secret reference smuggled into the error body is masked (sent as $NAME) even without --raw; --raw stays recommended because it avoids re-rendering already-final text and keeps untrusted content out of the shell-parsed cmd string:publish: on_error: - cmd: 'anodizer notify --raw "anodizer: $ANODIZER_PUBLISHER failed @ $ANODIZER_VERSION: $ANODIZER_ERROR"' |
on_rollback | list of (object | string) | — | Hooks that fire once per publisher anodizer tag rollback REVERTED — including a publisher that itself Succeeded and is being withdrawn because the whole release is (the case on_error, which fires solely for a failed publisher, does not cover). A publisher whose rollback was attempted but could not complete fires this too, with {{ .RollbackFailed }} set to true so the hook can escalate the orphaned-artifact case. Each entry is a standard hook (cmd / dir / env / output); the template variables add {{ .Publisher }}, {{ .Version }}, {{ .Tag }}, {{ .Group }} (Assets/Manager/Submitter), {{ .Required }}, {{ .RollbackFailed }} (true when the revert itself failed), {{ .Error }} (the rollback failure message, empty on a clean revert), and {{ .Reason }} (the trigger cause, distinct from {{ .Error }} — empty here, because the unwind replays state a prior process persisted). The same values are exported to the hook process as ANODIZER_PUBLISHER, ANODIZER_VERSION, ANODIZER_TAG, ANODIZER_GROUP, ANODIZER_REQUIRED, ANODIZER_ROLLBACK_FAILED, ANODIZER_ERROR, and ANODIZER_ROLLBACK_REASON. A hook's own failure is logged as a warning and never changes the release outcome or aborts the remaining rollbacks. It is independent of on_error: a publisher that both failed and was rolled back fires both.publish: on_rollback: - cmd: 'anodizer notify --raw "anodizer: $ANODIZER_PUBLISHER reverted @ $ANODIZER_VERSION (rollback_failed=$ANODIZER_ROLLBACK_FAILED)"' |
scoop | object | — | Scoop manifest publishing configuration. |
winget | object | — | WinGet manifest publishing configuration. |
crates[].publish.cargo
cargo publish flags.
Presence under publish: opts the crate in; use skip: true (or a template rendering true or 1) to opt out. There is no enabled field — presence is the on-switch.
Fields intentionally omitted because anodizer owns them:
--package/--workspace/--exclude: the top-levelcrates[]axis owns crate selection.--dry-run: pipeline-level CLI ergonomics (anodizer release --dry-run).-v/-q/--color: CLI ergonomics with no config key.--config/-Z: cargo CLI escape hatches; out of scope. | Field | Type | Default | Description | |-------|------|---------|-------------| |all_features| bool | — | Activate every feature, includingdefault(--all-features). | |allow_dirty| bool | — | Allow publishing with an uncommitted working tree (--allow-dirty). | |auth| "auto" | "oidc" | "token" | — | Whether the publish authenticates with a long-lived API token (CARGO_REGISTRY_TOKEN) or with GitHub Actions OIDC (crates.io Trusted Publishing). Defaultauto: a token when one is present, otherwise a Trusted-Publishing exchange when an OIDC context is available.oidccreates a short-lived crates.io token from a GitHub Actions id-token — no storedCARGO_REGISTRY_TOKENis needed — and revokes it after the publish loop. The token is workspace-scoped: one token authorizes every crate whose Trusted-Publisher config matches this repository/workflow, so a lockstep workspace creates one token and reuses it for all crates.
When omitted,autoapplies. Adefaults.publish.cargo.authvalue is inherited by every crate'spublish.cargoblock that omitsauth. | |features| list of string | — | Crate features to activate (--features). | |frozen| bool | — | Both--lockedand--offline(--frozen). | |if| string | — | Template-conditional gate: when the rendered result is falsy ("false"/"0"/"no"/ empty), the cargo publisher is skipped. Render failure hard-errors. Config key: the publisher'sif:. An absent, empty or blankif:imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. | |index| string | — | Registry index URL (--index). | |index_timeout| integer | — | Seconds to wait for the crates.io sparse index to publish a crate before its dependents are pushed (anodizer-original — nocargo publishequivalent). | |jobs| integer | — | Number of parallel compile jobs for verification (--jobs). | |keep_going| bool | — | Continue on errors when verifying multiple crates (--keep-going). | |locked| bool | — | Require an up-to-dateCargo.lockmatching the resolver (--locked). | |manifest_path| string | — | Path to the crate'sCargo.toml(--manifest-path). | |no_default_features| bool | — | Disable thedefaultfeature set (--no-default-features). | |no_verify| bool | — | Skip the localcargo build --releaseverification step (--no-verify). | |offline| bool | — | Require offline resolution with no network access (--offline). | |registry| string | — | Alternate registry name from~/.cargo/config.toml(--registry). | |required| bool | — | Override whether this publisher failing should fail the overall release.
Default:true— a failure here aborts the release. Set tofalseto log failures but continue. | |retain_on_rollback| bool | — | Whentrue, a triggered rollback leaves this publisher's work in place and does not try to undo it. Defaultfalse. | |skip| 0 | 1 | bool | string | — | Skip this publisher; supports template strings or bool. Truthy renders disable the publisher without removing the block. | |target| string | — | Build target triple for the verification step (--target). | |target_dir| string | — | Override the cargo target directory (--target-dir). | |wait_for_workspace_deps| object | — | Pre-publish gate that polls crates.io for every workspace-internal dep of the crate being published, blocking until each is queryable at its expected version. Required for multi-tag-multi-crate workspaces (e.g. cfgd) where per-crate tags fire independentRelease.ymlruns that would otherwise race the sparse-index propagation.
Single-crate workspaces and lockstep-bumped monorepos (anodizer itself) leave this off — there is no inter-tag race to gate on. |
crates[].publish.cargo.wait_for_workspace_deps
Pre-publish polling gate for cargo publish. When enabled, the cargo publisher reads its crate's manifest, identifies every dep that points at another crate in the same anodizer workspace, and polls https://index.crates.io/<prefix>/<name> until each (name, version) pair is queryable. Only then does cargo publish run.
Default: disabled. Anodizer's own workspaces publish lockstep with one tag; this feature only kicks in for multi-tag-multi-crate workspaces like cfgd where downstream crates can otherwise race the sparse-index propagation of their upstream deps.
Complementary to cargo.index_timeout: this gate runs BEFORE publish (waits for upstream deps to arrive), while index_timeout runs AFTER publish (waits for the just-published crate to arrive before the next dependent in the same run starts).
crates:
- name: myapp
path: .
publish:
cargo:
wait_for_workspace_deps:
enabled: true
poll_interval: 5s
max_wait: 5m| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | — | Master switch. Default false preserves today's behavior for single-crate workspaces and lockstep monorepos. |
max_wait | string | — | Hard ceiling on the total wait. The publisher bails with a clear error once max_wait elapses without every dep appearing. Humantime-style string (e.g. "5m", "30s"). Default: "5m".A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
poll_interval | string | — | Time between successive index probes. Humantime-style string (e.g. "5s", "500ms", "1m"). Default: "5s".A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
crates[].publish.homebrew
| Field | Type | Default | Description |
|---|---|---|---|
amd64_variant | "v1" | "v2" | "v3" | "v4" | — | amd64 microarchitecture variant filter (v1 / v2 / v3 / v4). Only artifacts matching this variant are included. Default: v1. Typed as Amd64Variant, so any value outside v1..v4 is rejected when the config is parsed. |
arm_variant | string | — | Deprecated. Ignored. Homebrew has no 32-bit ARM variant, so a formula leaves out every 32-bit ARM archive whatever this says. The field still parses so existing configs keep loading, and a deprecation warning names it at config-load time. |
cask | object | — | Homebrew Cask for this crate, the same setting as publish.homebrew_cask: (set one of the two). The cask is written into this formula's tap in the same commit, unless its own repository: names a different tap. |
caveats | string | — | Post-install user-facing notes shown by brew info. |
commit_author | object | — | Commit author with optional signing. |
commit_msg_template | string | — | Custom commit message template. Rendered via Tera with the standard release template variables (ProjectName, Tag, Version, etc.). Default: "Brew formula update for {{ ProjectName }} version {{ Tag }}". |
completions | object | — | Prebuilt shell-completion file paths to install. When set, the formula emits bash_completion.install "<path>" / zsh_completion.install / fish_completion.install in its install block — the form used when the archive ships ready-made completion files. |
conflicts | list of (object | string) | — | Conflicting formula names with optional reason. |
custom_block | string | — | Custom Ruby code block inserted into the formula class body. |
custom_require | string | — | Ruby require statement for custom download strategies. |
dependencies | list of object | — | Package dependencies (e.g. openssl, libgit2). |
description | string | — | Short description of the formula (shown in brew info). |
directory | string | — | Formula directory in the tap (e.g. "Formula"). |
download_strategy | string | — | Custom download strategy class name (e.g. :using => GitHubPrivateRepositoryReleaseDownloadStrategy). |
extra_install | string | — | Additional install commands appended after the main install block. |
generate_completions_from_executable | object | — | Generate completions by running the installed binary at install time. Renders the modern homebrew-core idiom generate_completions_from_executable(bin/"<exe>", ...) in the install block. Preferred over completions when the binary can emit its own completions; the two are independent and may both be set. |
homepage | string | — | Project homepage URL. Falls back to the GitHub release URL when unset. |
ids | list of string | — | Build IDs filter: only include artifacts whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the Homebrew publisher is skipped. Render failure hard-errors. Config key: brews[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
install | string | — | Ruby install block content for the formula. |
license | string | — | SPDX license identifier (e.g., "MIT", "Apache-2.0"). |
livecheck | object | — | livecheck stanza configuration for the formula. When unset, a binary tap formula emits livecheck { skip "Auto-generated on release." } to match the cask (the archive URL/sha are rewritten on every release, so brew livecheck cannot meaningfully poll). Set strategy: / regex:/url: to opt into active version detection instead. |
manpages | list of string | — | Manpage file paths to install into the formula's man1 (e.g. ["mytool.1"]). Each entry renders a man1.install "<path>" line in the install block, mirroring real Rust-CLI formulae (ripgrep, fd, bat). A path ending in .N (where N is 1–8) routes to the matching manN section; anything else defaults to man1. |
name | string | — | Override the formula name (default: crate name). |
plist | string | — | Launchd plist content for brew services. |
post_install | string | — | Post-install commands (separate def post_install block in formula). |
repository | object | — | The tap repository: owner and name, plus branch, token, pull request and git SSH settings. Replaces the older tap: key, which took only an owner and a name and is no longer accepted. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
service | string | — | Homebrew service block content (alternative to plist). |
skip_upload | 0 | 1 | bool | string | — | Skip publishing the formula. "true" always skips; "auto" skips for prerelease versions. Accepts bool or template string. |
test | string | — | Ruby test block content for the formula (run by brew test). |
url_headers | list of string | — | HTTP headers to include in download requests (e.g. for private repos). |
url_template | string | — | Custom URL template for download URLs (overrides release URL). |
crates[].publish.homebrew_cask
Homebrew Cask configuration, with the same keys in two places:
homebrew_casks:: a top-level list; carriesrepository,commit_author,directory,ids,url, structureduninstall/zap, etc.crates[].publish.homebrew_cask:: a per-crate cask, whereurl_templateis the simpler alternative tourl.
Every key is optional in both places.
| Field | Type | Default | Description |
|---|---|---|---|
alternative_names | list of string | — | Alternative cask names (aliases). |
app | string | — | macOS .app bundle name (e.g. "MyApp.app"). |
binaries | list of (object | string) | — | Binary stubs to create in /usr/local/bin. Each entry is either a bare string ( "my-cli" → emits binary "my-cli") or a structured { name, target } object ({ name: "my-cli", target: "mycli" } → emits binary "my-cli", target: "mycli"). The target: form mirrors the Homebrew Ruby cask DSL for binary renames — without it, a wrapped binary installs at the wrong path. Cask binary entry. |
binary | string | — | Deprecated singular spelling of binaries. The upstream replaced binary: foo with binaries: [foo]; this field captures the legacy spelling so imported configs keep parsing. apply_homebrew_cask_legacy_singulars folds the value into binaries at config-load time and emits a one-time deprecation warning per occurrence. The field is excluded from serialization so a round-tripped config emits only the canonical plural form. |
caveats | string | — | Custom caveats shown after install. |
commit_author | object | — | Commit author with optional signing. |
commit_msg_template | string | — | Custom commit message template. Default: "Brew cask update for {{ ProjectName }} version {{ Tag }}" |
completions | object | — | Shell completion definitions. |
conflicts | list of object | — | Conflicting casks or formulae. |
custom_block | string | — | Arbitrary Ruby code inserted into the cask block. |
dependencies | list of object | — | Cask dependencies (other casks or formulae). Rendered casks first, then formulae, each group sorted by name without regard to case with the names written as given, the order brew style requires. |
depends_on_macos | bool | — | Whether the cask renders depends_on :macos. When unset, anodizer decides from the downloads and the custom_block: a cask with no Linux download gets depends_on :macos unless its custom_block gives it a Linux side or declares an OS dependency.The block is read as code, with these set aside, each one carrying on into the next lines until it closes: "…", '…' and `…` strings (inside "…" and `…`, #{…} is read as code, so the string ends at its own quote, and #$" interpolates $"); heredoc bodies (<<~TAG, <<-TAG, <<TAG, a << before a space or a digit being a shift; unless the tag is single-quoted, a body line ending in an odd run of \ joins the next one, so a tag there does not close it, and #{…} in a body line is code, so a heredoc opened there has its body read from the next line, before the rest of the body around it, and a #{…} left open at the end of a body line reads on into the next); %(), %q, %Q, %w, %W, %i, %I, %r, %s and %x literals delimited by nesting brackets or one repeated punctuation character, a typed one also by a space or the end of the line (a list, %w %W %i %I, splits its words on whitespace, so whitespace never closes it), and a bare % where an operand must stand (with nothing before it on its statement but an operator, or after a label a:, the : of a ternary or a keyword that takes an operand: and, begin, break, case, do, else, elsif, ensure, if, in, next, or, rescue, return, then, unless, until, when or while) also by a space, a tab, = or the end of the line (a literal delimited by the end of its line holds the next line, and the one after while the held line ends in an odd run of \, and a %r closed that way takes the letters that start the line after as its options); ?x character literals (not ?ab, nor ?"a" after a word that may be a local); a /…/ regex where an operand stands; # comments; and =begin … =end comments, opened on any line that starts in code, the code of a #{…} left open at the end of the line before included. The code inside #{…} is kept apart from the code around it, in every literal that interpolates ("…" and `…` strings, :"…" symbols, heredocs whose tag is not single-quoted, %(), %Q, %W, %I, %r and %x literals and /…/ regexes), and each #{…} is read as statements of its own: its words count toward the Linux side, a depends_on opening one of its statements toward the OS dependency, and a ; in it ends no statement around the literal; it is read in the scopes around the literal by the rules below, as Ruby reads it, so the names it assigns are locals after it and the parameters and locals of a block, lambda or def inside it end with that block, lambda or def ("#{on_linux}" names a Linux side, '#{on_linux}' does not). None opens after a : that makes a symbol (one written against a method call that heads its statement or follows ., &. or :: does, as in foo:`, since such a call takes no label), in a special global ($"), or where it names a method: after ., &. or :: (with or without a space, whatever the name looks like, so x. % and a&.!~ are method names) or def, and as the ? or ! of a method name. Straight after a name Ruby reads as a method call, a ? opens a character literal (EOS!?", foo?=, x&.def??", foo.nil?=). Ruby reads a name as a method call after ., &. or ::, whatever it spells, and elsewhere unless it is a local variable, a parameter, a number, a variable with a sigil, or self, nil, true, false, end, __FILE__, __LINE__ or __ENCODING__. A ? or ! read as an operator ends no word, so a / after it opens a regex (!/a/).A <<, %, ? or / after a value is a shift, a modulo, a ternary or a division: after ), ], }, a number, a literal, a symbol (the operator ones and :a=, :a?, :a! included), self, nil, true, false, end, class, def, an @ or $ variable, a local assigned earlier in its scope (name =, name ||= and the other operator assignments wherever they stand, as in f(b += 1), unless the target follows ., &. or :: or has a sigil, a, b =, a, (b, c) =, (a, b) =, a, =, for a in, rescue => a, a named group before =~ in a regex with no #{…}, a name in an in pattern, the target of a rightward =>), a parameter of a block (|a, b; c|, also over several lines), method (def name(a, b = 1), with or without parentheses; a setter def name=(v) binds v alone) or lambda (->(x), -> (x)), or a word other than a keyword written straight against a <<, % or /. A def body sees none of the locals outside it; a block, a lambda body (-> { … }) included, sees them, and its parameters and the locals first assigned in it end at its end or }; if, while, case and begin open no scope. A statement continued with a \ at the end of a line, with a ?\ character literal holding the newline, with a ., &. or :: that ends a line (past blank and comment lines) or with a literal the newline closes, is read as one statement, so the code before the break decides what the operator, if or until after it is. After a word, a / followed by a space or = divides, and a : after a value ends a ternary and starts no symbol, so an operand stands after it. The word after a :: is a constant path or a method, also when the :: ended an earlier line. After an operator, (, ,, ;, the start of a line, a label, a Ruby keyword, any method of the cask DSL, a common method such as puts or a name ending in ? or ! followed by a space (no local or parameter is spelled that way) the operator opens a literal, and after any other word followed by a space it is read as an opener too, which is a guess.A Linux side is the word on_linux, on_system or app_image in that code. An OS dependency is a statement whose first word is depends_on (at the start of a line or after a ;, in the code around the literals or in a #{…}, after any opening () that names the key macos:, maximum_macos: or linux:, or the symbol :macos or :linux; the statement continues onto the next line while a line ends with ,, (, [, {, |, ., &&, ||, => or \, ends inside an open literal, or while it has opened more (, [ and { than it closed.The checks fall back to a word scan of the raw text, comments and strings included, which may over-match, when a literal is still open after the last line, when a guess opens a literal that spans several lines, or when a parameter still in scope is followed by a << whose heredoc tag closes on a later line. A word scan that finds a Linux-side word leaves depends_on :macos out and moves a flat download into on_macos, one that finds a depends_on OS key leaves the bare dependency out, and one that finds neither adds depends_on :macos; the render warns once per command unless this field is set.Read wrongly with no warning: a stanza built at runtime (through send or define_method), a depends_on after a do on the same line, and a guess whose literal closes on the same line, whose content is set aside.true renders depends_on :macos with a flat download; false renders no dependency and places a flat download inside on_macos. |
description | string | — | Cask description. |
directory | string | — | Subdirectory in the tap repo for cask placement (default: "Casks"). |
generate_completions_from_executable | object | — | Auto-generate shell completions from an executable. |
homepage | string | — | Project homepage URL. |
hooks | object | — | Pre/post install/uninstall hooks. |
ids | list of string | — | Build IDs filter: only include artifacts from builds whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the Homebrew Cask config is skipped. Render failure hard-errors. Config key: homebrew_casks[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
license | string | — | License identifier (SPDX). |
livecheck | object | — | livecheck stanza configuration for the cask. When unset, the cask emits livecheck do\n skip "Auto-generated on release."\nend (a binary cask's download URL/sha256 are rewritten on every release, so brew livecheck has nothing stable to poll). Setting any of strategy:, url: or regex: turns on active version detection, unless skip: true is also set. Reuses the formula livecheck config type; an active cask livecheck with no url: reads url :url. |
manpage | string | — | Deprecated singular spelling of manpages. The upstream replaced manpage: foo.1 with manpages: [foo.1]; this field captures the legacy spelling so imported configs keep parsing. apply_homebrew_cask_legacy_singulars folds the value into manpages at config-load time and emits a one-time deprecation warning per occurrence. The field is excluded from serialization so a round-tripped config emits only the canonical plural form. |
manpages | list of string | — | Manual page references to install. |
name | string | — | Cask name (default: crate / project name). |
repository | object | — | Unified repository config for the Homebrew tap. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
service | string | — | Path of a macOS Services bundle (for example MyTool.workflow) inside the download, written as service "<path>". |
skip_upload | 0 | 1 | bool | string | — | Skip publishing the cask. "true" always skips; "auto" skips for prerelease versions. Accepts bool or template string. |
uninstall | object | — | Structured uninstall stanza configuration. |
update_existing_pr | 0 | 1 | bool | string | — | When true, force-push the updated cask file to the existing PR branch when a PR for the same head branch already exists. The PR content is updated in place, so no duplicate is created. When false (default), the push is skipped and a warning is emitted so the operator sees that the publisher did not update the PR. |
url | object | — | Structured download URL configuration (top-level axis). |
url_template | string | — | Simple URL template for the .dmg/.zip download (per-crate shorthand). Cannot be combined with url.template: — set one or the other. If both are present, config validation rejects the config at parse time. Use url: for the structured form (verified domain, custom headers, etc.) or url_template: for a bare string shorthand — never both simultaneously. |
zap | object | — | Deep uninstall (zap) stanza configuration. |
crates[].publish.scoop
| Field | Type | Default | Description |
|---|---|---|---|
amd64_variant | "v1" | "v2" | "v3" | "v4" | — | amd64 microarchitecture variant filter (v1 / v2 / v3 / v4). Only artifacts matching this variant are included. Default: v1. Typed as Amd64Variant, so any value outside v1..v4 is rejected when the config is parsed. |
checkver | string | — | Scoop checkver strategy used by bucket maintainers to detect new releases. Defaults to "github" (derived from the configured GitHub repo) — ScoopInstaller/Main requires checkver for automated-update PRs. Override with a homepage regex when GitHub release detection is not appropriate.Example: checkver: "github" or checkver: "v([\\d.]+)". |
commit_author | object | — | Commit author with optional signing. |
commit_msg_template | string | — | Custom commit message template. |
depends | list of string | — | Application dependencies (other Scoop packages). |
description | string | — | Short description of the package (shown in scoop info). |
directory | string | — | Subdirectory in the bucket repo for manifest placement. Defaults to bucket — scoop resolves manifests only from bucket/ when that directory exists (root otherwise), so bucket/ is correct for both layouts. Set to "" to target the repo root. A stale same-named root-level manifest is removed when publishing into a subdirectory. |
homepage | string | — | Project homepage URL. Falls back to the GitHub-derived URL when unset. |
ids | list of string | — | Build IDs filter: only include artifacts whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the Scoop publisher is skipped. Render failure hard-errors. Config key: scoop[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
license | string | — | SPDX license identifier (e.g., "MIT", "Apache-2.0"). |
name | string | — | Override the manifest name (default: crate name). |
persist | list of string | — | Data paths persisted between Scoop updates. |
post_install | list of string | — | Commands to run after installation. |
pre_install | list of string | — | Commands to run before installation. |
repository | object | — | The bucket repository: owner and name, plus branch, token, pull request and git SSH settings. Replaces the older bucket: key, which took only an owner and a name and is no longer accepted. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
shortcuts | list of list of string | — | Start menu shortcuts as [executable, label] pairs. |
skip_upload | 0 | 1 | bool | string | — | Skip publishing the manifest. "true" always skips; "auto" skips for prerelease versions. Accepts bool or template string. |
url_template | string | — | Custom URL template for download URLs (overrides release URL). |
use | string | — | Artifact selection: "archive" (default), "msi", or "nsis". |
crates[].publish.chocolatey
| Field | Type | Default | Description |
|---|---|---|---|
amd64_variant | "v1" | "v2" | "v3" | "v4" | — | amd64 microarchitecture variant filter (v1 / v2 / v3 / v4). Only artifacts matching this variant are included. Default: v1. Typed as Amd64Variant, so any value outside v1..v4 is rejected when the config is parsed. |
api_key | string | — | Chocolatey API key for choco push. Falls back to CHOCOLATEY_API_KEY env var. |
authors | string | — | Package authors displayed in the Chocolatey gallery. |
bug_tracker_url | string | — | Bug tracker URL (<bugTrackerUrl>). Defaults to {repository}/issues when unset. |
copyright | string | — | Copyright notice. |
dependencies | list of object | — | Package dependencies with optional version constraints. |
description | string | — | Package description (supports markdown). |
docs_url | string | — | Documentation URL. |
icon_url | string | — | URL to the package icon image shown in the Chocolatey gallery. |
ids | list of string | — | Build IDs filter: only include artifacts whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the Chocolatey publisher is skipped. Render failure hard-errors. Config key: chocolateys[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
license | string | — | SPDX license expression (e.g. "MIT", "Apache-2.0", "MIT OR Apache-2.0"). Not emitted as a nuspec element — Chocolatey CLI does not support the NuGet <license> element (it warns CHCU0002: "use <licenseUrl> instead") — it gates the <licenseUrl> derivation: a single identifier derives a LICENSE blob URL; a compound expression has no single canonical file, so set license_url explicitly. |
license_url | string | — | Optional explicit <licenseUrl> — Chocolatey's only supported license metadata. When unset, anodizer derives a real GitHub …/blob/<tag>/LICENSE URL from repository (what ripgrep / fd / gh ship); when no repository is known or license is a compound SPDX expression, no <licenseUrl> is emitted. anodizer never synthesizes an opensource.org/licenses/<spdx> URL — it 404s for compound SPDX and gets the package rejected at moderation. |
name | string | — | Override the package name (default: crate name). |
owners | string | — | Package owners (Chocolatey gallery user). |
package_source_url | string | — | URL shown as the package source in the Chocolatey gallery. |
post_publish_poll | object | — | Post-publish moderation-queue polling settings. Polling is disabled by default — Chocolatey's community moderation queue routinely takes hours to days, and blocking a CI workflow on that wait is wrong. Opt in per-publisher with post_publish_poll: { enabled: true } when running locally and willing to wait, or disable globally via --no-post-publish-poll. |
project_source_url | string | — | Source code project URL (<projectSourceUrl>). Defaults to the derived repository URL when unset. |
project_url | string | — | Project homepage URL. |
release_notes | string | — | Release notes for this version. |
repository | object | — | Unified project repo config (owner/name). Used to derive <projectUrl> (the Chocolatey gallery link) and download URLs. <projectUrl> resolves through project_url: (if set) → derived https://github.com/{repository.owner}/{repository.name}. |
republish_in_moderation | 0 | 1 | bool | string | — | When true, re-push the nupkg even when a version is already in the community moderation queue (PackageStatus=Submitted). Chocolatey's API accepts re-pushes of in-moderation versions; the new nupkg replaces the queued one. When false (default), the push is skipped and a warning is emitted so the operator sees that the publisher did not push. |
require_license_acceptance | bool | — | Require license acceptance before install. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
skip | 0 | 1 | bool | string | — | Skip pushing to the Chocolatey community repository. Bool, string, or template expression (e.g. "{{ IsSnapshot }}"). Accepts the legacy skip_publish: spelling for back-compat with configs; canonical name is skip: to align with every other publisher. |
source_repo | string | — | Push source URL (default: https://push.chocolatey.org/). |
summary | string | — | Short summary of the package. |
tags | list of string | — | Tags for the Chocolatey gallery (joined with single spaces in the emitted nuspec). Always a typed list — the legacy space-separated-string form was dropped now for IDE-completion friendliness and to remove whitespace ambiguity. |
title | string | — | Package title (default: project name). |
url_template | string | — | Custom URL template for download URLs (overrides release URL). |
use | string | — | Artifact selection: "archive" (default), "msi", or "nsis". |
crates[].publish.chocolatey.post_publish_poll
Per-publisher post-publish polling config block.
A submission is accepted long before the package is approved (the Chocolatey moderation queue) or merged (the winget-pkgs validation pipeline). With polling enabled, the publish stage checks the upstream state every interval until it reaches a final state or timeout passes, and reports the result in the release summary. Default values: enabled: false, interval: 30s, timeout: 30m.
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | false | Whether to poll at all. Default false — the upstream moderation queues these publishers feed (Chocolatey, winget-pkgs) routinely take HOURS to DAYS; the publish stage cannot reasonably block on them in a CI workflow. Opt in to in-band verification by setting true per-publisher (e.g. when running locally and willing to wait). |
interval | string | 30s | How long to wait between successive status checks. Default 30s.A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
timeout | string | 30m | Total wall-clock budget for polling. When exhausted, the poller warns that polling timed out and names the last observed state. Default 30m.A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
crates[].publish.winget
| Field | Type | Default | Description |
|---|---|---|---|
additional_locales | list of object | — | Locale manifests published beside the default locale manifest, one <PackageIdentifier>.locale.<locale>.yaml per entry. Each entry names its locale and may override any localizable field; a field left unset takes the default locale's value, so a translation only has to carry the text that differs. Every field supports templates, and release_notes reads Changelog the way the top-level field does.An entry whose locale renders empty, equals default_locale, or repeats an earlier entry's locale skips the crate before any manifest is written or pushed.winget: default_locale: "en-US" additional_locales: - locale: "pt-BR" short_description: "Gerencia widgets" description: "Uma ferramenta completa para gerenciar widgets." - locale: "de-DE" short_description: "Verwaltet Widgets" |
amd64_variant | "v1" | "v2" | "v3" | "v4" | — | amd64 microarchitecture variant filter (v1 / v2 / v3 / v4). Only artifacts matching this variant are included. Default: v1. Typed as Amd64Variant, so any value outside v1..v4 is rejected when the config is parsed. |
author | string | — | Author name. |
commit_author | object | — | Commit author with optional signing. |
commit_msg_template | string | — | Custom commit message template. |
copyright | string | — | Copyright notice. |
copyright_url | string | — | Copyright URL. |
default_locale | string | — | Locale stamped into the WinGet manifests: the version manifest's DefaultLocale, the installer manifest's InstallerLocale, the locale manifest's PackageLocale, and the locale manifest's .locale.<locale>.yaml file name. Supports templates. Default: en-US.winget: default_locale: "pt-BR" |
dependencies | list of object | — | Package dependencies. |
description | string | — | Full package description displayed in the WinGet gallery. |
documentations | list of object | — | Documentation links rendered as the Documentations[] block on the locale manifest. Each entry is a { label, url } pair shown in the winget gallery (real ripgrep emits a FAQ and a User Guide entry). Omitted entirely when empty.Example: documentations: - label: "User Guide" url: "https://github.com/owner/repo/blob/master/GUIDE.md" |
homepage | string | — | Project homepage URL. |
ids | list of string | — | Build IDs filter: only include artifacts whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the WinGet publisher is skipped. Render failure hard-errors. Config key: winget[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
installation_notes | string | — | Post-install notes shown to the user. |
license | string | — | License identifier (required, e.g. "MIT"). |
license_url | string | — | License URL. |
moniker | string | — | Short invoke alias shown as the package Moniker (e.g. rg for ripgrep, fd for fd). This is the command users type, NOT the package/crate name. When unset, anodizer derives it from the single published binary name; with multiple binaries and no override the Moniker is omitted (winget treats it as optional).Example: moniker: "rg". |
name | string | — | Override the package name (default: crate name). |
package_identifier | string | — | WinGet package identifier (e.g. "Publisher.AppName"), template-rendered. Auto-generated as <publisher>.<name> if empty. |
package_name | string | — | Package name as displayed (default: same as name). |
path | string | — | Manifest file path (auto-generated if empty from publisher/name/version). |
post_publish_poll | object | — | Post-publish PR-validation polling settings. Polling is disabled by default — winget-pkgs PR validation routinely takes hours to days, and blocking a CI workflow on that wait is wrong. Opt in per-publisher with post_publish_poll: { enabled: true } when running locally and willing to wait, or disable globally via --no-post-publish-poll. |
privacy_url | string | — | Privacy policy URL. |
product_code | string | — | Product code for the installer (used in Add/Remove Programs). |
publisher | string | — | Publisher name (required). |
publisher_support_url | string | — | Publisher support URL. |
publisher_url | string | — | Publisher homepage URL shown in the WinGet manifest. |
release_notes | string | — | Release notes for this version. |
release_notes_url | string | — | URL to full release notes. |
repository | object | — | The manifests repository: owner and name, plus branch, token, pull request and git SSH settings. Replaces the older manifests_repo: key, which is no longer accepted. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
short_description | string | — | Short description (required, max 256 chars). |
silent_switch | string | — | Silent-install switch string emitted as InstallerSwitches.Silent for actual installers (wix/msi/exe/nsis). When unset, anodizer derives the switch from the installer type (/quiet for msi, /S for exe/nsis). Never emitted for zip/portable artifacts.Example: silent_switch: "/qn". |
skip_upload | 0 | 1 | bool | string | — | Skip publishing. "true" always skips; "auto" skips for prereleases. Accepts bool or template string. |
tags | list of string | — | Tags for package discovery (lowercased, spaces→hyphens). |
update_existing_pr | 0 | 1 | bool | string | — | When true, force-push the updated manifest to the existing PR branch when a PR for the same head branch already exists. The PR content is updated in place, so no duplicate is created. When false (default), the push is skipped and a warning is emitted so the operator sees that the publisher did not update the PR. |
upgrade_behavior | string | — | Installer UpgradeBehavior for every installer entry. winget accepts install, uninstallPrevious, and deny. Defaults to install — the correct behavior for portable-zip CLI tools (uninstallPrevious forces a clobbering reinstall).Example: upgrade_behavior: "uninstallPrevious". |
url_template | string | — | Custom URL template for download URLs (overrides release URL). |
use | string | — | Artifact selection: "archive" (default), "msi", or "nsis". |
crates[].publish.winget.post_publish_poll
Per-publisher post-publish polling config block.
A submission is accepted long before the package is approved (the Chocolatey moderation queue) or merged (the winget-pkgs validation pipeline). With polling enabled, the publish stage checks the upstream state every interval until it reaches a final state or timeout passes, and reports the result in the release summary. Default values: enabled: false, interval: 30s, timeout: 30m.
| Field | Type | Default | Description |
|---|---|---|---|
enabled | bool | false | Whether to poll at all. Default false — the upstream moderation queues these publishers feed (Chocolatey, winget-pkgs) routinely take HOURS to DAYS; the publish stage cannot reasonably block on them in a CI workflow. Opt in to in-band verification by setting true per-publisher (e.g. when running locally and willing to wait). |
interval | string | 30s | How long to wait between successive status checks. Default 30s.A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
timeout | string | 30m | Total wall-clock budget for polling. When exhausted, the poller warns that polling timed out and names the last observed state. Default 30m.A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
crates[].publish.aur
| Field | Type | Default | Description |
|---|---|---|---|
amd64_variant | "v1" | "v2" | "v3" | "v4" | — | amd64 microarchitecture variant filter (v1 / v2 / v3 / v4). Only artifacts matching this variant are included. Default: v1. Typed as Amd64Variant, so any value outside v1..v4 is rejected when the config is parsed. |
backup | list of string | — | List of config files to preserve on upgrade (relative to /). |
commit_author | object | — | Commit author with optional signing. |
commit_msg_template | string | — | Custom commit message template. Default: "Update to {{ version }}". |
conflicts | list of string | — | Packages this PKGBUILD conflicts with. |
contributors | list of string | — | Contributors listed in PKGBUILD comments. |
depends | list of string | — | Runtime dependencies required by this package. |
description | string | — | Short description of the package for PKGBUILD. |
directory | string | — | Subdirectory in the git repo for committed files. |
git_ssh_command | string | — | Custom SSH command for git operations. Takes precedence over private_key when both are set. |
git_url | string | — | AUR SSH git URL override. Defaults to ssh://aur@aur.archlinux.org/<package>.git, derived from the resolved package name; set this only for a non-standard endpoint. |
homepage | string | — | Project homepage URL. |
ids | list of string | — | Build IDs filter: only include artifacts whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the AUR publisher is skipped. Render failure hard-errors. The aurs[].if: conditional gate. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
install | string | — | Content for a .install file (post-install/pre-remove scripts). |
license | string | — | SPDX license identifier (e.g., "MIT", "Apache-2.0"). |
maintainers | list of string | — | PKGBUILD maintainer entries (e.g., "Name email@example.com"). |
name | string | — | Override the package name (default: crate name + "-bin"). |
optdepends | list of string | — | Optional dependencies with descriptions (e.g., "fzf: fuzzy finder support"). |
package | string | — | Custom PKGBUILD package() function body. |
private_key | string | — | The SSH private key itself, as its PEM or OpenSSH text. Supports templates, so a key is usually read from the environment: private_key: "{{ .Env.AUR_SSH_KEY }}". Written to a temporary file with mode 0600 for the push. |
provides | list of string | — | Packages this PKGBUILD provides (virtual package names). |
rel | string | — | Package release number (default: "1"). |
replaces | list of string | — | Packages this PKGBUILD replaces (for upgrade paths from old package names). |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
skip | 0 | 1 | bool | string | — | Skip this AUR config. Accepts bool or template string (e.g. "{{ if .IsSnapshot }}true{{ endif }}" for conditional skip). Accepts the legacy disable: spelling via serde alias for back-compat. |
skip_upload | 0 | 1 | bool | string | — | Skip publishing. "true" always skips; "auto" skips for prereleases. Accepts bool or template string. |
url_template | string | — | Custom URL template for download URLs (overrides release URL). |
crates[].publish.aur_source
| Field | Type | Default | Description |
|---|---|---|---|
amd64_variant | "v1" | "v2" | "v3" | "v4" | — | x86_64 micro-architecture variant — v1 (baseline), v2, v3 (AVX2), or v4. Constrained to a typed enum because AUR source pkgs build from the upstream tarball (no binary artifacts to filter), so the value's only role is as the Amd64 template var consumed by prepare: / build: / package: script bodies — typos must fail at parse time and never silently render an invalid string into the PKGBUILD. When unset, defaults to v1 at template-render time. |
arches | list of string | — | Pacman architectures for arch=(). Defaults to the architectures of the Linux build targets, x86_64 when there are none. |
backup | list of string | — | Backup files to preserve on upgrade. |
build | string | — | Custom build() function body for PKGBUILD. |
commit_author | object | — | Commit author with optional signing. |
commit_msg_template | string | — | Custom commit message template. |
conflicts | list of string | — | Packages this PKGBUILD conflicts with. |
contributors | list of string | — | Contributors listed in PKGBUILD comments. |
depends | list of string | — | Runtime dependencies. |
description | string | — | Short description of the package. |
directory | string | — | Subdirectory in the git repo for committed files. |
git_ssh_command | string | — | Custom SSH command for git operations. Takes precedence over private_key when both are set. |
git_url | string | — | AUR SSH git URL override. Defaults to ssh://aur@aur.archlinux.org/<package>.git, derived from the resolved package name; set this only for a non-standard endpoint. |
homepage | string | — | Project homepage URL. |
ids | list of string | — | Has no effect on a source package: the PKGBUILD builds from the one source archive the release carries and reads no build artifacts. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the AUR source config is skipped. Render failure hard-errors. The aur_sources[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
install | string | — | Content for a .install file (post-install/pre-remove scripts). |
license | string | — | SPDX license identifier. |
maintainers | list of string | — | PKGBUILD maintainer entries. |
makedepends | list of string | — | Build-time dependencies (source packages need these). |
name | string | — | Override the package name (default: crate name, no -bin suffix). |
optdepends | list of string | — | Optional dependencies. |
package | string | — | Custom package() function body for PKGBUILD. |
prepare | string | — | Custom prepare() function body for PKGBUILD. |
private_key | string | — | The SSH private key itself, as its PEM or OpenSSH text. Supports templates, so a key is usually read from the environment: private_key: "{{ .Env.AUR_SSH_KEY }}". Written to a temporary file with mode 0600 for the push. |
provides | list of string | — | Packages this PKGBUILD provides. |
rel | string | — | Package release number (default: "1"). |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
skip | 0 | 1 | bool | string | — | Skip this config. Accepts the legacy disable: spelling via serde alias for back-compat. |
skip_upload | 0 | 1 | bool | string | — | Skip publishing. "true" always skips; "auto" skips for prereleases. |
url_template | string | — | Download URL of the source archive (template). Defaults to the release asset URL of the archive the source: stage produced; {{ .ArtifactName }} is that archive's file name. |
crates[].publish.krew
| Field | Type | Default | Description |
|---|---|---|---|
amd64_variant | "v1" | "v2" | "v3" | "v4" | — | amd64 microarchitecture variant filter (v1 / v2 / v3 / v4). Only artifacts matching this variant are included. Default: v1. Typed as Amd64Variant, so any value outside v1..v4 is rejected when the config is parsed. |
arm_variant | string | — | ARM version filter (e.g. "6", "7"). Only artifacts matching this variant are included. Default: 6. |
caveats | string | — | Post-install message shown to the user. |
commit_author | object | — | Commit author with optional signing. |
commit_msg_template | string | — | Custom commit message template. |
description | string | — | Full description of the kubectl plugin. |
homepage | string | — | Project homepage URL for the plugin. |
ids | list of string | — | Build IDs filter: only include artifacts whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the Krew publisher is skipped. Render failure hard-errors. Config key: krews[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
mode | "auto" | "bot" | "pr-direct" | — | Which krew-index submission path to take. - auto (default): probe whether the plugin already exists in kubernetes-sigs/krew-index. Already present → bot (the hosted krew-release-bot opens the version-bump PR server-side); definitively absent → pr-direct (anodizer opens the initial fork PR). A probe that can't reach a definitive answer (rate-limit, network error) hard-errors and does not guess, so a transient blip never routes an existing plugin into a maintainer-hostile fork PR. - bot: always POST to the krew-release-bot webhook. Use when the plugin is known to be in krew-index and you want to skip the membership probe entirely. - pr-direct: always open a fork PR against krew-index. Use for the initial submission, or a self-hosted krew-index mirror the hosted bot can't reach. |
name | string | — | Override the plugin name (default: crate name). |
repository | object | — | Unified repository config with branch, token, PR, git SSH support. (Replaces the legacy manifests_repo: / upstream_repo: form.) The upstream PR target is derived from repository.pull_request.base when set, falling back to the canonical kubernetes-sigs/krew-index. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
short_description | string | — | One-line summary of the kubectl plugin (max 255 chars). |
skip | 0 | 1 | bool | string | — | Skip this Krew config. Accepts bool or template string (e.g. "{{ if .IsSnapshot }}true{{ endif }}" for conditional skip). Distinct from skip_upload so users can opt out of generating the manifest entirely (common when a project is not a kubectl plugin and has no krew channel). |
skip_upload | 0 | 1 | bool | string | — | Skip publishing. "true" always skips; "auto" skips for prereleases. Accepts bool or template string. |
update_existing_pr | 0 | 1 | bool | string | — | When true, force-push the updated plugin manifest to the existing PR branch when a PR for the same head branch already exists. The PR content is updated in place, so no duplicate is created. When false (default), the push is skipped and a warning is emitted so the operator sees that the publisher did not update the PR. |
url_template | string | — | Custom URL template for download URLs (overrides release URL). |
crates[].publish.nix
| Field | Type | Default | Description |
|---|---|---|---|
amd64_variant | "v1" | "v2" | "v3" | "v4" | — | amd64 microarchitecture variant filter (v1 / v2 / v3 / v4). Only artifacts matching this variant are included. Default: v1. Typed as Amd64Variant, so any value outside v1..v4 is rejected when the config is parsed. |
changelog | string | — | URL for meta.changelog. When unset, anodizer derives <host>/<owner>/<repo>/releases/tag/<tag> from the crate's release repository and the release tag (matching what ripgrep/fd set in nixpkgs). Set this to override (e.g. a …/blob/<tag>/CHANGELOG.md URL). Templated. Omitted only when no release repo is configured and no explicit value is given. |
commit_author | object | — | Commit author with optional signing. |
commit_msg_template | string | — | Custom commit message template. |
dependencies | list of object | — | Nix package dependencies with optional OS filtering. |
description | string | — | Short description of the Nix derivation. |
extra_install | string | — | Additional install commands appended after the main install. |
formatter | string | — | Nix formatter to run on the generated file: "alejandra" or "nixfmt". |
homepage | string | — | Project homepage URL. |
ids | list of string | — | Build IDs filter: only include artifacts whose id is in this list. |
if | string | — | Template-conditional gate: when the rendered result is falsy ("false" / "0" / "no" / empty), the Nix publisher is skipped. Render failure hard-errors. Config key: nix[].if:. An absent, empty or blank if: imposes no gate and always runs; the falsy test applies to what a non-blank gate renders. |
install | string | — | Custom install commands (replaces auto-generated binary install). |
license | string | — | License for the derivation's meta.license. Accepts a nix lib.licenses attribute (e.g. mit, asl20) or an SPDX expression (e.g. MIT, Apache-2.0, MIT OR Apache-2.0). A known single id maps to lib.licenses.<attr>; an OR/AND list of known ids maps to with lib.licenses; [ … ]. An unknown id or an unparseable compound (e.g. a WITH exception) degrades to a quoted-string license in meta; it is not rejected and never yields an invalid attr-path. When unset, the license is derived from the crate's Cargo.toml [package].license. |
long_description | string | — | Long-form description for meta.longDescription, rendered as a multi-line longDescription = '' … ''; block. Optional; omitted when unset. Templated. |
main_program | string | — | Value for meta.mainProgram in the generated Nix derivation. When set, the rendered derivation includes mainProgram = "<value>"; inside the meta block, telling Nix which binary nix run should execute when the derivation contains multiple executables. Templated: supports {{ Version }} etc. Omitted when unset. |
maintainers | list of string | — | nixpkgs maintainer handles (from lib.maintainers) rendered as maintainers = with lib.maintainers; [ alice bob ]; in the derivation's meta. These are nixpkgs handles (e.g. globin, zowoq), NOT Name <email> author strings — a nixpkgs review rejects a derivation whose meta.maintainers is absent. When unset the derivation still emits maintainers = [ ]; (an empty-but-present list is valid and clears the "field absent" rejection); a user fills in their handle. Each entry is rendered verbatim as a Nix identifier, so values must be valid lib.maintainers attribute names. |
name | string | — | Override the derivation name (default: crate name). |
path | string | — | Path for the .nix file in the repository (default: pkgs/<name>/default.nix). |
post_install | string | — | Post-install commands (postInstall phase). |
repository | object | — | Unified repository config with branch, token, PR, git SSH support. |
required | bool | — | Override whether this publisher failing should fail the overall release. Default: false — a failure here is logged but does not abort the release. Set to true to fail the release on any error. |
retain_on_rollback | bool | — | When true, a triggered rollback leaves this publisher's work in place and does not try to undo it. Default false. |
skip | 0 | 1 | bool | string | — | Skip this Nix config. Accepts bool or template string (e.g. "{{ if .IsSnapshot }}true{{ endif }}" for conditional skip). Distinct from skip_upload so users can model both intents — disable means "don't generate at all", skip_upload means "generate but don't push". Without this field, nix: { skip: true } was silently dropped by the serde unknown-field default. |
skip_upload | 0 | 1 | bool | string | — | Skip publishing. "true" always skips; "auto" skips for prereleases. Accepts bool or template string. |
url_template | string | — | Custom URL template for download URLs (overrides release URL). |
release.preflight
The release.preflight: block.
| Field | Type | Default | Description |
|---|---|---|---|
fail_on_error | 0 | 1 | bool | string | true | Stop the run when a release preflight check fails. Default: true.The checks, per forge: - GitHub: the token can push to the release repository, and when a release already exists at the tag it is not immutable. An immutable release cannot be updated and its assets cannot be replaced, so the release would fail. - GitLab: the token has Developer access or higher on the project. A run authenticating with a CI job token skips this check, since a job token cannot read the project. - Gitea: the token can push to the repository. - A missing token is a failed check on every forge. With false, a failed check is reported as a warning that ends in continuing because release.preflight.fail_on_error is false, and the run continues; the release then fails at creation if the problem is real. The token is also an environment requirement of the release (ANODIZER_GITHUB_TOKEN, GITHUB_TOKEN or GH_TOKEN; GITLAB_TOKEN; GITEA_TOKEN; or --token), so a missing token still stops the run at the environment check whatever this field says, and with false the release preflight's own report of it is a warning beside that failure. A check that preflight.strict turns into a failure is a failed check here too.A crate's own value wins over the top-level release: block's; an empty value counts as unset. Accepts a bool, an unquoted 1 or 0, or a template that renders to true, false, 1 or 0 (any letter case). Any other render, an empty one included, stops the run with an error naming the value.release: preflight: fail_on_error: "{{ not IsNightly }}" # warn only on nightly runs |
notarize.macos
Cross-platform macOS signing and notarization via rcodesign.
| Field | Type | Default | Description |
|---|---|---|---|
enabled | 0 | 1 | bool | string | — | Older spelling of skip:, inverted: enabled: true is skip: false and enabled: false is skip: true. A template skips the entry when it renders empty, false, 0 or no. When both enabled and skip are absent, the entry runs. |
ids | list of string | — | Build IDs whose darwin binaries and universal binaries this entry signs. Default: the project name; with no project name, every darwin binary. |
notarize | object | — | Notarization configuration (App Store Connect API key). Omit for sign-only. |
sign | object | — | Signing configuration (P12 certificate). |
skip | 0 | 1 | bool | string | — | Skip this entry. Accepts a bool or a template string; a template skips when it renders true or 1. When absent, the entry runs.The older enabled: key is still accepted and inverted: enabled: true becomes skip: false, enabled: false becomes skip: true. |
notarize.macos[].notarize
App Store Connect API key configuration for rcodesign notary-submit.
| Field | Type | Default | Description |
|---|---|---|---|
issuer_id | string | — | App Store Connect API key issuer UUID. Templates allowed. |
key | string | — | Path to .p8 key file or base64-encoded contents. Templates allowed. |
key_id | string | — | API key ID. Templates allowed. |
timeout | string | — | Timeout for notarization status polling. Humantime-style string (e.g. "10m", "15s"). Default when omitted: "10m", maximum "20m". The App Store Connect token lifetime is derived from this value and Apple rejects a token that lives longer, so a larger timeout fails config validation.A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
wait | bool | — | Whether to wait for notarization to complete. Default: false; timeout applies only while waiting. |
notarize.macos_native
Native macOS signing and notarization via codesign + xcrun notarytool.
| Field | Type | Default | Description |
|---|---|---|---|
enabled | 0 | 1 | bool | string | — | Older spelling of skip:, inverted: enabled: true is skip: false and enabled: false is skip: true. A template skips the entry when it renders empty, false, 0 or no. When both enabled and skip are absent, the entry runs. |
ids | list of string | — | Build IDs whose darwin artifacts this entry signs and notarizes: app bundles and DMGs with use: dmg, PKGs with use: pkg. Default: the project name; with no project name, every matching artifact. |
notarize | object | — | Native notarization configuration (xcrun notarytool). |
sign | object | — | Native signing configuration (Keychain). |
skip | 0 | 1 | bool | string | — | Skip this entry. Accepts a bool or a template string; a template skips when it renders true or 1. When absent, the entry runs.The older enabled: key is still accepted and inverted: enabled: true becomes skip: false, enabled: false becomes skip: true. |
use | "dmg" | "pkg" | — | Artifact type to sign and notarize: dmg (default) or pkg. Any other value (zip, app, …) fails when the config loads. |
notarize.macos_native[].notarize
Native notarization configuration for xcrun notarytool.
| Field | Type | Default | Description |
|---|---|---|---|
profile_name | string | — | Notarytool stored credentials profile name. Templates allowed. |
timeout | string | — | Timeout for xcrun notarytool submit --timeout. Humantime-style string (e.g. "10m", "15s", "1h"). Default: "10m".A duration: one or more whole numbers, each followed by a unit (ms, s, m, h or d), such as 90s, 1h30m or 2d. Spaces and tabs may separate the parts. The total may be at most one year (31536000s); a longer value is refused when the config loads. |
wait | bool | — | Whether to wait for notarization to complete and staple the ticket. Default: false. |