diff --git a/.drone.yml b/.drone.yml index 4f2d26e..3d86601 100644 --- a/.drone.yml +++ b/.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