Automate policy source freshness and inventory
Some checks failed
Build and publish policy-nexus image / build-and-push (push) Failing after 2s

This commit is contained in:
tegwick 2026-08-18 13:25:49 +02:00
parent 78d096bdd5
commit 03a4fab9e0
17 changed files with 1647 additions and 42 deletions

View file

@ -1,4 +1,4 @@
.PHONY: build check currency clean release-build release-check image-build
.PHONY: build check currency source-audit clean release-build release-check image-build
# Publication targets. Source of truth is always the upstream repo; pages here
# are generated and must never be hand-edited.
@ -6,12 +6,17 @@ SRC_NETKINGDOM ?= ../net-kingdom
build:
python3 tools/build_site.py publication.json --output build
python3 tools/source_inventory.py check --report build/source-inventory.json
check:
python3 -m unittest discover -s tests -p 'test_*.py'
python3 -m py_compile tools/render.py tools/build_site.py tools/check_currency.py tools/verify_release.py
python3 -m py_compile tools/render.py tools/build_site.py tools/check_currency.py tools/verify_release.py tools/source_inventory.py tools/fetch_sources.py
$(MAKE) source-audit
git diff --check
source-audit:
python3 tools/source_inventory.py check
currency:
python3 tools/check_currency.py publication.json
@ -22,7 +27,7 @@ release-check:
python3 tools/verify_release.py build
python3 tools/check_currency.py publication.json
release-build: clean build release-check
release-build: build release-check
image-build: release-check
@test -n "$(IMAGE_REF)" || (echo "IMAGE_REF is required" >&2; exit 2)