feat: Configure Telegram notifications for deployment status and add a direct test message in the deploy step.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Moh Dzulfikri Maulana
2026-03-10 11:55:10 +07:00
parent b8bd64c37a
commit ead2154491

View File

@@ -25,7 +25,7 @@ steps:
port: 22
key:
from_secret: ssh_key
envs: [ GITEA_USER, GITEA_TOKEN ]
envs: [ GITEA_USER, GITEA_TOKEN, TELEGRAM_TOKEN, TELEGRAM_CHAT_ID ]
gitea_user:
from_secret: gitea_user
gitea_token:
@@ -36,13 +36,19 @@ steps:
- docker compose pull
- docker compose up -d --remove-orphans
- docker image prune -f
- |
curl -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage" \
-d "chat_id=${TELEGRAM_CHAT_ID}" \
-d "message_thread_id=8" \
-d "parse_mode=HTML" \
-d "text=<b>Test Direct Curl</b> from VPS"
when:
branch: master
event: push
# 3.Telegram Notification
notify-telegram:
image: appleboy/drone-telegram
image: appleboy/drone-telegram:1.3.9
settings:
token:
from_secret: telegram_token
@@ -67,4 +73,8 @@ steps:
<b>🛠 Build Details:</b>
⏱ <b>Duration:</b> {{ build.duration }}s
🔗 <a href="{{ build.link }}">View Full Logs</a>
🔗 <a href="{{ build.link }}">View Full Logs</a>
when:
- event: [push]
branch: master
status: [ success, failure ]