Repository navigation
v1.7.0
Release Notes — v1.7.0
Notifications: Email & Telegram
Version 1.7.0 adds a notification system that alerts you about deploys, failures, and server problems over email and Telegram. hideploy.sh and README.md are updated. All 222 automated tests (with fake Telegram and SMTP servers) pass, but this has not been run on a real server yet, since the sandbox has no real Docker or Telegram bot.
Bug Fix in 1.6.0 (Email)
In the previously released version, the Mail domains (show DNS, check DNS, remove domain) and Mailboxes (change password, remove mailbox) menus crashed the entire script with an unbound variable error caused by variable name collisions. Earlier tests did not run those menus with the mail server installed, so they missed it. This is now fixed and has a dedicated test showing the old code failed in all 4 cases while the new code does not. If you are running 1.6.0, update to 1.7.0.
New Menu: 10) Notifications
Two channels, which can be enabled together:
Email
Sent through your own mail server. The script creates a dedicated mailbox, notifications@<your-domain>, with a random password. Recipients can be any address.
Telegram
Create a bot via BotFather and provide the token, send a message to the bot, and the script finds the chat automatically. Multiple chats or groups are supported. A proxy option is available if Telegram is blocked from your server.
Events (each toggled independently)
- Successful and failed deploys, both from the HiDeploy menu and from GitLab pipelines. Messages include the commit, author, duration, and pipeline/job links.
- Rollbacks, backup results, SSL renewal failures, and certificates nearing expiry.
- Container stops for projects or shared services (nginx, MariaDB, Redis, mail server, Docker itself), disk filling up, and reboot required.
Anti-spam behavior
- Each problem is announced once, a reminder follows if it persists for 24 hours, and a "resolved" message is sent when it clears.
- A container must be down for two consecutive checks (5 minutes apart), so normal restarts during deploys do not raise alerts.
- Simultaneous issues are combined into a single message.
- If a channel is temporarily unavailable, retries continue for up to an hour, and only for recipients who did not receive the message.
- Settings let you change the server name, disk and certificate thresholds, and mute test projects.
Important Note About Pipelines
Pipelines run as the gitlab-runner user and must not see the Telegram token or mailbox password. So the pipeline only writes a small event file to a shared directory, and a root-side job (every minute) sends it. These files are never executed — only a fixed set of fields is read and cleaned up.
For existing projects: you need the new .gitlab-ci.yml. In 10 → 8, the script lists old projects, generates the new file, and prints the copy and push commands. Only .gitlab-ci.yml changes. Deploys from the HiDeploy menu send notifications without this step.
Three Things to Know
- Email alone is not enough. If the mail server itself breaks, the alert about that failure will not arrive by email. Enabling Telegram alongside it is recommended.
- The notification mailbox password is necessarily stored in plain text in
notify.env(root-only access, included in encrypted backups). If notification emails land in spam, mark them as "not spam". - The Telegram token never appears on the command line — it is only inside the
curlinput and is not visible inps(tested).
Upgrade
Replace hideploy.sh and README.md on GitHub and tag v1.7.0. On the server:
sudo hideploy updateThen hideploy --version should show 1.7.0. If you are on 1.6.0, this update is strongly recommended because of the email menu fix.