sqlite-clone/.drone.yml

27 lines
886 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:13:30 +02:00
Status: <b{{#success build.status}} OK {{ else }} FAILURE {{/success}}</b>
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 }}
2022-03-27 18:08:18 +02:00
Build: <{{ build.link }}| Drone Build {{ build.number }} >