update docker

This commit is contained in:
Gaël
2025-09-08 18:23:36 +02:00
parent 67f85515a9
commit 5f57eab24a
3 changed files with 610 additions and 5 deletions

View File

@@ -1,10 +1,14 @@
#!/bin/bash
set -euo pipefail
trap 'echo "[stop] shutting down..."; kill 0' SIGINT SIGTERM
git fetch --all || true
git reset --hard origin/main || true
# Pull the latest changes
git fetch --all
git reset --hard origin/main
# Lancer les 2 bots en parallèle
python -u post_rss_to_ghost.py & PID1=$!
python -u presquegratos.py & PID2=$!
# Run your Python script
python post_rss_to_ghost.py
# Attendre que l'un des deux meure (et laisser l'autre se faire tuer par le trap)
wait -n "$PID1" "$PID2" || true