mirror of
https://github.com/bunkerity/bunkerweb-templates.git
synced 2026-04-24 20:05:49 +03:00
1
Validation and Tooling
Théophile Diot edited this page 2025-10-22 14:15:23 +02:00
Pre-commit (format, spell, secrets):
- Install hooks once:
pre-commit install - Run on all files:
pre-commit run --all-files
JSON sanity:
-
jq . templates/\<name\>/template.json
NGINX snippet lint (where applicable):
-
nginx -t -c <(printf 'events{} http{ include templates/\<name\>/configs/\<file\>.conf; }')
Service-specific checks (optional):
- Docker Compose:
docker compose config - Kubernetes dry run:
kubectl apply --server-dry-run -f <file>
See:
- Hooks: .pre-commit-config.yaml
- Contributor guide: CONTRIBUTING.md