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

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

@ -7,13 +7,31 @@ steps:
commands: commands:
- npm install - npm install
- npm run build - npm run build
steps: - name: telegram notification
- name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: telegram_token token:
to: telegram_to from_secret: telegram_token
message_file: message_file.tpl to:
template_vars: from_secret: telegram_to
env: testing format: markdown
app: MyApp 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