Deploy notifications
This commit is contained in:
41
.drone.yml
41
.drone.yml
@ -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
|
||||
|
Reference in New Issue
Block a user