feat: optimize cache workflow with orphan branch and age check

- Create/use orphan branch 'similarity-cache-data' for cache distribution
- Add age check to dockerhub-publish: only rebuild if cache >7 days old
- Use git add -f to force-add cache files (keeps .gitignore clean)
- Weekly scheduled builds will keep cache fresh automatically

This avoids rebuilding cache on every Docker publish while ensuring
cache is always reasonably fresh (<7 days old).
This commit is contained in:
matt 2025-10-17 17:11:04 -07:00
parent b26057f68d
commit 86752b351b
3 changed files with 62 additions and 8 deletions

2
.gitignore vendored
View file

@ -31,8 +31,6 @@ csv_files/*
!csv_files/testdata/
!csv_files/testdata/**/*
card_files/*
!card_files/similarity_cache.parquet
!card_files/similarity_cache_metadata.json
deck_files/
dist/