Deploy notifications
This commit is contained in:
41
.drone.yml
41
.drone.yml
@ -99,26 +99,27 @@ trigger:
|
|||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- Build
|
- Build
|
||||||
# ---
|
|
||||||
# kind: pipeline
|
|
||||||
# type: docker
|
|
||||||
# name: notifications
|
|
||||||
|
|
||||||
# steps:
|
---
|
||||||
# - name: telegram
|
kind: pipeline
|
||||||
# pull: always
|
type: docker
|
||||||
# image: appleboy/drone-telegram
|
name: notifications
|
||||||
# settings:
|
|
||||||
# message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{/success}}\n"
|
|
||||||
# to:
|
|
||||||
# from_secret: telegram_to
|
|
||||||
# token:
|
|
||||||
# from_secret: telegram_token
|
|
||||||
|
|
||||||
# trigger:
|
steps:
|
||||||
# status:
|
- name: telegram
|
||||||
# - success
|
pull: always
|
||||||
# - failure
|
image: appleboy/drone-telegram
|
||||||
|
settings:
|
||||||
|
message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{/success}}\n"
|
||||||
|
to:
|
||||||
|
from_secret: telegram_to
|
||||||
|
token:
|
||||||
|
from_secret: telegram_token
|
||||||
|
|
||||||
# depends_on:
|
trigger:
|
||||||
# - deploy
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- deploy
|
||||||
|
Reference in New Issue
Block a user