feat: add system packaging (.rpm, .deb, .tar.gz) and Gitea Actions CI/CD release workflow
This commit is contained in:
1 parent
e5784db650
commit
a03d9a85e6
10 files changed
+834
No files matched your search
@@ -12,6 +12,7 @@
|
||||
- [x] Slice 4 — In-memory deduplication and conflict resolution engine with stderr warnings
|
||||
- [x] Slice 5 — Extended exporters (linux-connector, Generic YAML, XML) and --sync flag
|
||||
- [x] Slice 6 — Configuration file (config.yaml), CLI check mode (--check), and documentation
|
||||
- [x] Slice 7 — Packaging (.tar.gz, .deb, .rpm) and Gitea Actions CI/CD pipeline
|
||||
|
||||
## Notes for a fresh session
|
||||
- Project: Universal homelab and fleet inventory collector and deduplicator.
|
||||
|
||||
@@ -73,3 +73,16 @@ The implementation is broken down into 6 thin, verifiable vertical slices. Each
|
||||
- **Test / Verification:**
|
||||
- `tests/test_cli.py` testing `--check` output format and config file loading.
|
||||
- End-to-end regression test suite passing 100% of unit tests.
|
||||
|
||||
---
|
||||
|
||||
## Slice 7: Packaging (.tar.gz, .deb, .rpm) & Gitea Actions CI/CD
|
||||
- **Scope:**
|
||||
- Create `packaging/install.sh` for standalone installation to standard system directories (`/usr/bin`, `/usr/lib/inventory-collector`, `/usr/share/man/man1`, shell completions).
|
||||
- Create `packaging/inventory-collector.spec` and `packaging/build_packages.py` to automate packaging into `.tar.gz`, `.deb`, and `.rpm`.
|
||||
- Create Gitea Actions workflow `.gitea/workflows/build-and-release.yml` targeting `runs-on: fedora`.
|
||||
- Workflow features: unit testing, package generation, Gitea Release asset uploads, and Gitea Package Registry publication (RPM & Debian) with repo linking.
|
||||
- **Test / Verification:**
|
||||
- Build packages inside `docker.io/library/fedora:40` container via Podman.
|
||||
- Test installation of `.rpm` and `.tar.gz` (`install.sh`) inside clean Podman container.
|
||||
- Verify executable, man page, completions, and version output.
|
||||
Reference in new issue
Block a user