28 lines
905 B
YAML
28 lines
905 B
YAML
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
steps:
|
|
- name: build && test
|
|
image: rust:1
|
|
commands:
|
|
- cargo build --verbose --all
|
|
- cargo test --verbose --all
|
|
-
|
|
- name: send telegram notification
|
|
image: appleboy/drone-telegram
|
|
settings:
|
|
token:
|
|
from_secret: telegram_token
|
|
to: 2129601481
|
|
format: markdown
|
|
message: >
|
|
# Status: {{#success build.status}} OK {{ else }} FAILURE {{/success}}
|
|
|
|
Commit: <a href="https://github.com/{{ repo.owner }}/{{ repo.name }}/commit/{{ build.commit }}|{{ truncate build.commit 8 }}">{{ build.commit }}|{{ truncate build.commit 8 }}</a
|
|
|
|
Branch: <a https://github.com/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}></a>
|
|
|
|
Author: {{ build.author }}
|
|
|
|
Build: <{{ build.link }}| Drone Build {{ build.number }} > |