Repository navigation
feat: CI-gated autodeploy with release tracking and watch-window rollback - #9
Merged
Merged
Conversation
…back Replace the deployment scripts with the current template's and fold the nightly yt-dlp updater into it: - Deploy only commits whose GitHub checks passed, or after 30 minutes when CI never starts. - Report healthy only while the download workers run and Telegram answers getUpdates; a stale poll marks the bot unhealthy without stopping it. - Record releases as commit plus exact image, watch fresh releases for ten minutes, and roll back automatically; manual rollback can be undone. - Rebuild nightly with REBUILD_STAMP and restart only when `python -m yt_dlp --version` changes; the installer removes the old yt-dlp updater timer. - Deploy commits that do not change the image without a restart. - Run git as the checkout owner; keep the one-line curl installer. - Apply ruff formatting to main.py and app/planner.py, which failed CI. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves VideoDownloaderBot to the deployment layer of the current
telegram-bot-autodeploy-template, with the nightly yt-dlp refresh folded into it.getUpdateswithin 90 seconds. A stale poll reports unhealthy without stopping the bot, and it recovers on its own.scripts/rollback.sh).deploy.conf(REBUILD_STAMP+REBUILD_VERSION_CMD): the bot restarts only when yt-dlp has a new version, with the same checks and rollback as any deploy.scripts/update-ytdlp.shand its timer are removed; the installer disables the old timer on the server.getMe. The one-linebash <(curl …)installer keeps working.ruff formatonmain.pyandapp/planner.py, which made CI fail onmainsince 2026-09-19. Formatting only.Tests
🤖 Generated with Claude Code