sqlite-clone/.drone.yml

23 lines
776 B
YAML
Raw Normal View History

2022-03-27 17:35:33 +02:00
kind: pipeline
type: docker
name: default
steps:
- name: build && test
2022-03-27 17:37:40 +02:00
image: rust:1
2022-03-27 17:35:33 +02:00
commands:
- cargo build --verbose --all
2022-03-27 18:00:52 +02:00
- cargo test --verbose --all
-
- name: send telegram notification
image: appleboy/drone-telegram
settings:
token:
from_secret: telegram_token
2022-03-27 18:03:23 +02:00
to: 2129601481
2022-03-27 18:00:52 +02:00
message: >
2022-03-27 18:10:49 +02:00
{{#success build.status}} OK {{ else }} FAILURE {{/success}}
2022-03-27 18:04:50 +02:00
Commit: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commit/{{ build.commit }}|{{ truncate build.commit 8 }}>
Branch: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}>
Author: {{ build.author }}
2022-03-27 18:08:18 +02:00
Build: <{{ build.link }}| Drone Build {{ build.number }} >