ci: cron-агрегатор внешних RSS (scripts/package.json + install-cron.sh)
All checks were successful
deploy / deploy (push) Successful in 48s

- Изолированный scripts/package.json с одним fast-xml-parser, чтобы не раздувать root node_modules на хосте
- scripts/install-cron.sh — настройка cron /etc/cron.d/pushkino-rss-aggregator, hourly /usr/bin/node pull-external-rss.mjs → data/news.json
- logrotate weekly × 4 для /var/log/pushkino-rss-aggregator.log
- Bind-mount data/ уже подцеплен в docker-compose как /var/lib/pushkino/data:ro
This commit is contained in:
striker
2026-05-21 03:31:33 +03:00
parent 87b44d07c6
commit 78fedc59cf
3 changed files with 51 additions and 1 deletions

9
scripts/package.json Normal file
View File

@@ -0,0 +1,9 @@
{
"name": "pushkinohistory-cron",
"type": "module",
"private": true,
"description": "Standalone cron-скрипт для агрегации внешних RSS. Изолирован от основного app package.json.",
"dependencies": {
"fast-xml-parser": "^4.5.0"
}
}