dnviti
4d2bf99d12
feat: add comprehensive caching to CI/CD pipeline
Optimize Gitea Actions pipeline with multi-layer caching strategy:
**Lint Job:**
- Cache Poetry installation (~/.local) - avoids reinstalling Poetry
- Cache Poetry dependencies (.venv + ~/.cache/pypoetry) - reuses installed packages
- Cache key based on poetry.lock hash for automatic invalidation on dependency changes
**Build Job:**
- Cache Docker Buildx layers (/tmp/.buildx-cache) - speeds up incremental builds
- Dual cache strategy: local filesystem + container registry
- Cache rotation to prevent unlimited growth
- Per-component cache keys for optimal reuse
**Expected Performance:**
- Lint job: ~2-3x faster after first run (skip Poetry + deps installation)
- Build job: ~3-5x faster on incremental builds (reuse Docker layers)
- First run unchanged, subsequent runs significantly faster
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>