@tj-smith47/anodizer-linux-x64-musl 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-APACHE +201 -0
- package/LICENSE-MIT +21 -0
- package/README.md +301 -0
- package/anodizer +0 -0
- package/package.json +29 -0
package/LICENSE-APACHE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/LICENSE-MIT
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 TJ Smith
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<img src="assets/logo.svg" width="200" alt="anodizer logo">
|
|
4
|
+
|
|
5
|
+
# anodizer
|
|
6
|
+
|
|
7
|
+
The release pipeline built for Rust — workspace-aware, reproducible, and signed by default.
|
|
8
|
+
|
|
9
|
+
[](https://github.com/tj-smith47/anodizer/actions/workflows/ci.yml)
|
|
10
|
+
[](https://github.com/tj-smith47/anodizer/actions/workflows/release.yml)
|
|
11
|
+
[](https://github.com/tj-smith47/anodizer/actions/workflows/docs.yml)
|
|
12
|
+
[](https://github.com/tj-smith47/anodizer/actions/workflows/ci.yml)
|
|
13
|
+
[](https://crates.io/crates/anodizer)
|
|
14
|
+
[](#license)
|
|
15
|
+
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
Anodizer reads a declarative config file and runs your entire release from a single `anodizer release` command: build, archive, checksum, changelog, sign, release, publish, and announce. It's built around the Rust ecosystem — Cargo workspaces, `Cargo.lock`-aware version bumps, crates.io, and byte-reproducible artifacts.
|
|
19
|
+
|
|
20
|
+
Written by [Claude](https://claude.ai); maintained by us.
|
|
21
|
+
|
|
22
|
+
See [What works (with proof)](https://tj-smith47.github.io/anodizer/dogfooding/) for a per-feature status — every "live" claim links to a real published artifact you can verify yourself.
|
|
23
|
+
|
|
24
|
+
## Why anodizer?
|
|
25
|
+
|
|
26
|
+
Your release is a Cargo workspace — not a bag of loose binaries. anodizer is built that way from the ground up.
|
|
27
|
+
|
|
28
|
+
- **It speaks Cargo.** Per-crate release cadences, per-crate tags, and a tag resolver let a single crate and a thirty-crate monorepo share one config. `anodizer tag` and `anodizer bump` rewrite `Cargo.toml` *and* `Cargo.lock`, then commit, tag, and push atomically — no orphaned bump commit, no hand-rolled `git push`, no lockfile drift.
|
|
29
|
+
- **crates.io, published in the right order.** Dependency-aware ordering with sparse-index polling holds each crate until the ones it depends on have propagated — so a workspace publish never races itself into a transient "version not found."
|
|
30
|
+
- **Cross-compiles without the toolchain tax.** musl, glibc, Windows, and macOS from one machine via `cargo-zigbuild` or `cross`. No `rustup target add` rituals, no per-target CI shards to babysit.
|
|
31
|
+
- **Reproducible — and it proves it.** Deterministic artifacts by default, then `anodizer check determinism` rebuilds them and byte-compares. "Reproducible" becomes a fact your CI enforces, not a claim in your release notes.
|
|
32
|
+
- **Signing and attestation are first-class.** cosign + GPG for binaries, archives, checksums, and images, plus SLSA-style build provenance — wired in a few lines, not bolted on after a CVE scare.
|
|
33
|
+
|
|
34
|
+
Then the long tail that Rust authors actually hit: generated per-crate READMEs, `cargo-binstall` metadata derived straight from your config (no hand-maintained `pkg-url` that 404s), `version_files` to pin your docs and install scripts to the released version, and post-release install smoke tests that catch a broken artifact before your users do.
|
|
35
|
+
|
|
36
|
+
Already know GoReleaser? anodizer's `{{ .Field }}` template syntax will feel right at home. Moving from cargo-dist, release-plz, or cargo-release? The [migration guides](https://tj-smith47.github.io/anodizer/migration/) map your setup straight over.
|
|
37
|
+
|
|
38
|
+
## Features
|
|
39
|
+
|
|
40
|
+
**Build**
|
|
41
|
+
- Cross-platform builds via `cargo-zigbuild`, `cross`, or native `cargo build`
|
|
42
|
+
- Per-build hooks (pre/post), environment variables, feature flags, and target overrides
|
|
43
|
+
- UPX binary compression with per-target filtering
|
|
44
|
+
- Workspace support with per-crate independent release cadences
|
|
45
|
+
|
|
46
|
+
**Package**
|
|
47
|
+
- Archives in tar.gz, tar.xz, tar.zst, zip, gz, or raw binary format with OS-specific overrides
|
|
48
|
+
- Linux packages (.deb, .rpm, .apk, .archlinux, .ipk) via nFPM with full lifecycle scripts
|
|
49
|
+
- Snapcraft snaps with prime-dir architecture
|
|
50
|
+
- macOS DMG disk images and PKG installers
|
|
51
|
+
- Windows MSI and NSIS installers
|
|
52
|
+
- Flatpak bundles
|
|
53
|
+
- AppImage portable Linux applications
|
|
54
|
+
- Makeself self-extracting archives
|
|
55
|
+
- Source RPMs (.src.rpm)
|
|
56
|
+
- Source archives with file filtering
|
|
57
|
+
- SBOM generation (CycloneDX/SPDX)
|
|
58
|
+
- Checksums with SHA-256, SHA-512, SHA3, BLAKE2b, BLAKE2s, BLAKE3, CRC32, MD5, and more
|
|
59
|
+
|
|
60
|
+
**Sign**
|
|
61
|
+
- GPG and cosign signing for binaries, archives, checksums, Docker images, and SBOMs
|
|
62
|
+
- Multiple independent signing configurations
|
|
63
|
+
- Conditional signing via template expressions
|
|
64
|
+
- Build provenance attestations (SLSA-style) for binaries and artifacts
|
|
65
|
+
|
|
66
|
+
**Publish**
|
|
67
|
+
- GitHub/GitLab/Gitea Releases with asset uploads, draft/prerelease detection, header/footer templates
|
|
68
|
+
- crates.io with dependency-aware ordering and index polling
|
|
69
|
+
- Homebrew formula and cask generation
|
|
70
|
+
- Scoop manifest generation
|
|
71
|
+
- Chocolatey package generation
|
|
72
|
+
- Winget manifest generation
|
|
73
|
+
- AUR PKGBUILD and .SRCINFO generation
|
|
74
|
+
- Krew plugin manifest generation
|
|
75
|
+
- Nix derivation generation
|
|
76
|
+
- SchemaStore catalog registration for editor autocomplete of your config files
|
|
77
|
+
- MCP registry server-manifest publishing (Model Context Protocol)
|
|
78
|
+
- Docker multi-arch images via `docker buildx`
|
|
79
|
+
- Blob storage uploads (S3, GCS, Azure)
|
|
80
|
+
- Artifactory, Cloudsmith, Fury, Docker Hub
|
|
81
|
+
- Custom publisher commands
|
|
82
|
+
|
|
83
|
+
**Announce**
|
|
84
|
+
- Discord, Slack, Telegram, Teams, Mattermost
|
|
85
|
+
- Email, Reddit, Twitter/X, Mastodon, Bluesky, LinkedIn
|
|
86
|
+
- OpenCollective, Discourse
|
|
87
|
+
- Generic webhooks with custom headers and templates
|
|
88
|
+
|
|
89
|
+
**Advanced**
|
|
90
|
+
- Tera templates (Jinja2-like) with GoReleaser-compatible `{{ .Field }}` syntax
|
|
91
|
+
- Nightly builds with date-based versioning
|
|
92
|
+
- Config includes for shared configuration
|
|
93
|
+
- Split/merge CI for fan-out parallel builds
|
|
94
|
+
- Monorepo support with independent workspaces
|
|
95
|
+
- Auto-tagging from commit message directives
|
|
96
|
+
- Reproducible builds with `mod_timestamp` and `builds_info`
|
|
97
|
+
- Version-string file syncing (`version_files`) to keep docs, scripts, and manifests in lockstep at tag
|
|
98
|
+
- Post-release verification with install smoke tests
|
|
99
|
+
- JSON Schema for editor autocomplete and validation
|
|
100
|
+
|
|
101
|
+
## Installation
|
|
102
|
+
|
|
103
|
+
### Homebrew (macOS/Linux)
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
brew install tj-smith47/tap/anodizer
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Cargo
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
cargo install anodizer
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### From source
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
git clone https://github.com/tj-smith47/anodizer.git
|
|
119
|
+
cd anodizer
|
|
120
|
+
cargo install --path crates/cli
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
## Quick Start
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Generate a starter config from your Cargo workspace
|
|
127
|
+
anodizer init > .anodizer.yaml
|
|
128
|
+
|
|
129
|
+
# Validate your config
|
|
130
|
+
anodizer check
|
|
131
|
+
|
|
132
|
+
# Check that required tools are available
|
|
133
|
+
anodizer healthcheck
|
|
134
|
+
|
|
135
|
+
# Build a snapshot (no publishing)
|
|
136
|
+
anodizer release --snapshot
|
|
137
|
+
|
|
138
|
+
# Dry run (full pipeline, no side effects)
|
|
139
|
+
anodizer release --dry-run
|
|
140
|
+
|
|
141
|
+
# Auto-tag from commit directives
|
|
142
|
+
# (Conventional Commits: feat: → minor, fix: → patch, BREAKING CHANGE: → major)
|
|
143
|
+
anodizer tag --dry-run # preview what tag would be created
|
|
144
|
+
anodizer tag # create + push the tag, which triggers the release workflow
|
|
145
|
+
|
|
146
|
+
# Or force a specific tag value:
|
|
147
|
+
anodizer tag --custom-tag v0.1.0
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
For CI-based releases, set `GITHUB_TOKEN` (or `ANODIZER_GITHUB_TOKEN`) as a secret — the release pipeline picks it up automatically.
|
|
151
|
+
|
|
152
|
+
## Configuration
|
|
153
|
+
|
|
154
|
+
Anodizer uses `.anodizer.yaml` (or `.anodizer.toml`) in your project root. Add a schema comment for editor autocomplete:
|
|
155
|
+
|
|
156
|
+
```yaml
|
|
157
|
+
# yaml-language-server: $schema=https://tj-smith47.github.io/anodizer/schema.json
|
|
158
|
+
|
|
159
|
+
project_name: myapp
|
|
160
|
+
|
|
161
|
+
defaults:
|
|
162
|
+
targets:
|
|
163
|
+
- x86_64-unknown-linux-gnu
|
|
164
|
+
- aarch64-unknown-linux-gnu
|
|
165
|
+
- x86_64-apple-darwin
|
|
166
|
+
- aarch64-apple-darwin
|
|
167
|
+
- x86_64-pc-windows-msvc
|
|
168
|
+
cross: auto
|
|
169
|
+
|
|
170
|
+
crates:
|
|
171
|
+
- name: myapp
|
|
172
|
+
path: "."
|
|
173
|
+
tag_template: "v{{ Version }}"
|
|
174
|
+
builds:
|
|
175
|
+
- binary: myapp
|
|
176
|
+
archives:
|
|
177
|
+
- name_template: "{{ ProjectName }}-{{ Version }}-{{ Os }}-{{ Arch }}"
|
|
178
|
+
files: [LICENSE, README.md]
|
|
179
|
+
release:
|
|
180
|
+
github:
|
|
181
|
+
owner: myorg
|
|
182
|
+
name: myapp
|
|
183
|
+
publish:
|
|
184
|
+
cargo: {}
|
|
185
|
+
homebrew:
|
|
186
|
+
repository:
|
|
187
|
+
owner: myorg
|
|
188
|
+
name: homebrew-tap
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
See the [full configuration reference](https://tj-smith47.github.io/anodizer/docs/reference/configuration/) and the [template reference](https://tj-smith47.github.io/anodizer/docs/general/templates/) for all available fields, variables, and filters.
|
|
192
|
+
|
|
193
|
+
## Real-world adoption: cfgd
|
|
194
|
+
|
|
195
|
+
[`cfgd`](https://github.com/tj-smith47/cfgd) — declarative, GitOps-style machine configuration management — is anodizer's first real-world adopter and dogfoods every shipped publisher. It's a 4-crate workspace (shared lib + CLI + Kubernetes operator + CSI driver) that ships to crates.io (dependency-aware ordering), GitHub Releases, Homebrew, Scoop, Chocolatey, Winget, the Snap Store, Krew, GHCR, and via `cargo binstall` — all from one `.anodizer.yaml` and one tag push.
|
|
196
|
+
|
|
197
|
+
A condensed slice of [cfgd's `.anodizer.yaml`](https://github.com/tj-smith47/cfgd/blob/master/.anodizer.yaml):
|
|
198
|
+
|
|
199
|
+
```yaml
|
|
200
|
+
workspaces:
|
|
201
|
+
- name: cfgd-core
|
|
202
|
+
crates:
|
|
203
|
+
- name: cfgd-core
|
|
204
|
+
tag_template: "core-v{{ Version }}"
|
|
205
|
+
version_sync: { enabled: true, mode: cargo }
|
|
206
|
+
|
|
207
|
+
- name: cfgd
|
|
208
|
+
crates:
|
|
209
|
+
- name: cfgd
|
|
210
|
+
depends_on: [cfgd-core]
|
|
211
|
+
version_sync: { enabled: true, mode: cargo }
|
|
212
|
+
universal_binaries:
|
|
213
|
+
- name_template: "{{ ProjectName }}"
|
|
214
|
+
replace: false
|
|
215
|
+
binstall:
|
|
216
|
+
enabled: true # pkg-url + per-target overrides derived from archive.name_template
|
|
217
|
+
# ... cfgd-operator, cfgd-csi
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Every cell of [What works (with proof)](https://tj-smith47.github.io/anodizer/dogfooding/) links to a real published cfgd artifact for the feature in question — that's the verification surface.
|
|
221
|
+
|
|
222
|
+
## GitHub Actions
|
|
223
|
+
|
|
224
|
+
Anodizer ships a first-party action, [`tj-smith47/anodizer-action`](https://github.com/tj-smith47/anodizer-action), which is what this repo dogfoods in its own `release.yml`:
|
|
225
|
+
|
|
226
|
+
```yaml
|
|
227
|
+
name: Release
|
|
228
|
+
|
|
229
|
+
on:
|
|
230
|
+
push:
|
|
231
|
+
tags: ["v*"]
|
|
232
|
+
|
|
233
|
+
permissions:
|
|
234
|
+
contents: write
|
|
235
|
+
|
|
236
|
+
jobs:
|
|
237
|
+
release:
|
|
238
|
+
runs-on: ubuntu-latest
|
|
239
|
+
steps:
|
|
240
|
+
- uses: actions/checkout@v6
|
|
241
|
+
with:
|
|
242
|
+
fetch-depth: 0
|
|
243
|
+
|
|
244
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
245
|
+
|
|
246
|
+
- name: Release
|
|
247
|
+
uses: tj-smith47/anodizer-action@v1
|
|
248
|
+
with:
|
|
249
|
+
version: latest # accepts `latest`, `nightly`, or an exact tag (e.g. `v0.5.0`). Pin in production.
|
|
250
|
+
auto-install: true # auto-detect nfpm/makeself/snapcraft/cosign/etc from .anodizer.yaml
|
|
251
|
+
args: release --clean
|
|
252
|
+
env:
|
|
253
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
For split/merge fan-out, GPG key import, registry login, and per-platform variants, see [anodizer-action](https://github.com/tj-smith47/anodizer-action) and the live [`.github/workflows/release.yml`](.github/workflows/release.yml) in this repo.
|
|
257
|
+
|
|
258
|
+
## CLI Reference
|
|
259
|
+
|
|
260
|
+
```
|
|
261
|
+
anodizer release Full release pipeline (--snapshot, --dry-run, --split/--merge, --publish-only, --rollback-only)
|
|
262
|
+
anodizer tag Auto-tag from commit directives
|
|
263
|
+
anodizer tag rollback Delete anodize-managed tags at a SHA and revert the bump commit
|
|
264
|
+
anodizer check Validate configuration + run determinism harness
|
|
265
|
+
anodizer preflight Verify the environment can run the configured release (tools, secrets, key material)
|
|
266
|
+
anodizer init Generate starter .anodizer.yaml
|
|
267
|
+
anodizer healthcheck Probe external tools (nfpm, cosign, ...)
|
|
268
|
+
```
|
|
269
|
+
|
|
270
|
+
Failure handling is in-process: a failed `anodizer release` executes the
|
|
271
|
+
`release.on_failure` policy itself (`rollback` by default — delete the tag,
|
|
272
|
+
revert the bump — auto-degrading to `hold` once a one-way-door publisher like
|
|
273
|
+
crates.io has landed), so release workflows need no `if: failure()` recovery
|
|
274
|
+
steps. `anodizer tag rollback "$GITHUB_SHA"` is the manual recovery command
|
|
275
|
+
for killed or held runs. See
|
|
276
|
+
[Release resilience](https://tj-smith47.github.io/anodizer/docs/advanced/release-resilience/)
|
|
277
|
+
for the flag matrix and recovery flows.
|
|
278
|
+
|
|
279
|
+
Full reference: `anodizer --help` or the [docs site](https://tj-smith47.github.io/anodizer/docs/reference/cli/).
|
|
280
|
+
|
|
281
|
+
## Documentation
|
|
282
|
+
|
|
283
|
+
Full documentation is available at **[tj-smith47.github.io/anodizer](https://tj-smith47.github.io/anodizer/)**.
|
|
284
|
+
|
|
285
|
+
Operator guides:
|
|
286
|
+
|
|
287
|
+
- [Release resilience guide](https://tj-smith47.github.io/anodizer/docs/advanced/release-resilience/) - three-group publisher dispatch, Submitter gate, rollback, replay-from-run
|
|
288
|
+
- [Determinism guide](https://tj-smith47.github.io/anodizer/docs/advanced/determinism/) - byte-stability contract, `anodizer check determinism` harness, runtime allow-list
|
|
289
|
+
|
|
290
|
+
## License
|
|
291
|
+
|
|
292
|
+
Licensed under either of
|
|
293
|
+
|
|
294
|
+
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or https://www.apache.org/licenses/LICENSE-2.0)
|
|
295
|
+
- MIT license ([LICENSE-MIT](LICENSE-MIT) or https://opensource.org/licenses/MIT)
|
|
296
|
+
|
|
297
|
+
at your option.
|
|
298
|
+
|
|
299
|
+
Unless you explicitly state otherwise, any contribution intentionally submitted
|
|
300
|
+
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
|
|
301
|
+
dual licensed as above, without any additional terms or conditions.
|
package/anodizer
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "TJ Smith",
|
|
3
|
+
"cpu": [
|
|
4
|
+
"x64"
|
|
5
|
+
],
|
|
6
|
+
"description": "A Rust-native release automation tool",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=18"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"LICENSE*",
|
|
12
|
+
"README*",
|
|
13
|
+
"anodizer"
|
|
14
|
+
],
|
|
15
|
+
"homepage": "https://github.com/tj-smith47/anodizer",
|
|
16
|
+
"libc": [
|
|
17
|
+
"musl"
|
|
18
|
+
],
|
|
19
|
+
"license": "MIT OR Apache-2.0",
|
|
20
|
+
"name": "@tj-smith47/anodizer-linux-x64-musl",
|
|
21
|
+
"os": [
|
|
22
|
+
"linux"
|
|
23
|
+
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public",
|
|
26
|
+
"provenance": false
|
|
27
|
+
},
|
|
28
|
+
"version": "0.10.0"
|
|
29
|
+
}
|