ci: add Telegram notification step to CI pipeline
This commit is contained in:
@@ -37,4 +37,24 @@ steps:
|
|||||||
- docker image prune -f
|
- docker image prune -f
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
|
# 3.Telegram Notification
|
||||||
|
notify-telegram:
|
||||||
|
image: appleboy/drone-telegram
|
||||||
|
settings:
|
||||||
|
token:
|
||||||
|
from_secret: 8686730921:AAEtcvEAGFcJTobcoiy_FqAvq4mqCTZzOdM
|
||||||
|
to:
|
||||||
|
from_secret: -1003898365147
|
||||||
|
thread_id: 8
|
||||||
|
format: html
|
||||||
|
message: >
|
||||||
|
<b>Deployment Success!</b>
|
||||||
|
<b>Project:</b> {{ repo.name }}
|
||||||
|
<b>Commit:</b> {{ commit.message }}
|
||||||
|
<b>Author:</b> {{ commit.author }}
|
||||||
|
<b>Status:</b> ✅ Finished
|
||||||
|
when:
|
||||||
|
branch: master
|
||||||
|
status: [ success, failure ]
|
||||||
Reference in New Issue
Block a user