2 Commits

Author SHA1 Message Date
59fd789a91 Merge pull request 'fix deploy #4' (#20) from dev-15 into master
All checks were successful
Deploy to Production / Deploy to Production (push) Successful in 41s
Deploy to Production / Rollback to Previous Version (push) Has been skipped
Reviewed-on: #20
2026-02-28 21:40:26 +00:00
f398274655 Merge pull request 'dev-15' (#19) from dev-15 into master
Some checks failed
Deploy to Production / Deploy to Production (push) Failing after 19s
Deploy to Production / Rollback to Previous Version (push) Has been skipped
Reviewed-on: #19
2026-02-28 21:38:54 +00:00

View File

@@ -174,8 +174,6 @@ jobs:
if [ -n "${BACKUP_FILE:-}" ] && [ -f "$BACKUP_FILE" ]; then
rm -f "$BACKUP_FILE" && echo "✅ Backup removed (deploy success)"
fi
# Удаляем остановленные контейнеры, чтобы не копились после stop/recreate
docker container prune -f && echo "✅ Stopped containers pruned" || true
else
echo "❌ Container failed to start!"
docker logs bots_telegram_bot --tail 50 || true
@@ -227,10 +225,6 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if ! command -v gh >/dev/null 2>&1; then
echo "⏭️ gh CLI not installed in runner, skipping PR body extraction"
exit 0
fi
echo "🔍 Searching for merged PR associated with commit ${{ github.sha }}..."
# Находим последний мерженный PR для master по merge commit SHA
@@ -388,7 +382,6 @@ jobs:
tail -n "$HISTORY_SIZE" "$HISTORY_FILE" > "${HISTORY_FILE}.tmp" && mv "${HISTORY_FILE}.tmp" "$HISTORY_FILE"
echo "✅ Rollback completed successfully"
docker container prune -f && echo "✅ Stopped containers pruned" || true
- name: Send rollback notification
if: always()