diff --git a/.woodpecker.yml b/.woodpecker.yml
index 5970759..17c88de 100644
--- a/.woodpecker.yml
+++ b/.woodpecker.yml
@@ -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=Test Direct Curl 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:
🛠 Build Details:
⏱ Duration: {{ build.duration }}s
- 🔗 View Full Logs
\ No newline at end of file
+ 🔗 View Full Logs
+ when:
+ - event: [push]
+ branch: master
+ status: [ success, failure ]
\ No newline at end of file