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: 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