Изменил(а) на '.drone.yml'

main
vladimirkutkovoy 1 year ago
parent 809828d8e2
commit c3c372d2e7
  1. 34
      .drone.yml

@ -7,13 +7,31 @@ steps:
commands:
- npm install
- npm run build
steps:
- name: send telegram notification
- name: telegram notification
image: appleboy/drone-telegram
settings:
token: telegram_token
to: telegram_to
message_file: message_file.tpl
template_vars:
env: testing
app: MyApp
token:
from_secret: telegram_token
to:
from_secret: telegram_to
format: markdown
when:
status:
- success
- failure
message: >
{{#success build.status}}
✅ Build #{{build.number}} of `{{repo.name}}` succeeded.
📝 Commit by {{commit.author}} on `{{commit.branch}}`:
```
{{commit.message}}
```
🌐 {{ build.link }}
{{else}}
❌ Build #{{build.number}} of `{{repo.name}}` failed.
📝 Commit by {{commit.author}} on `{{commit.branch}}`:
```
{{commit.message}}
```
🌐 {{ build.link }}
{{/success}}
Loading…
Cancel
Save