Deploy notifications

This commit is contained in:
2022-11-16 10:26:59 +03:00
parent d2260f2bb0
commit 8b86cb1842

View File

@ -99,26 +99,27 @@ trigger:
depends_on:
- Build
# ---
# kind: pipeline
# type: docker
# name: notifications
# steps:
# - name: telegram
# pull: always
# 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
---
kind: pipeline
type: docker
name: notifications
# trigger:
# status:
# - success
# - failure
steps:
- name: telegram
pull: always
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:
# - deploy
trigger:
status:
- success
- failure
depends_on:
- deploy