notes/.drone.yml

31 lines
617 B
YAML
Raw Normal View History

2023-04-15 17:29:07 +00:00
---
# ----------------------------------------------
# -- Check subs
# ----------------------------------------------
kind: pipeline
type: kubernetes
name: Check subs
trigger:
event:
2023-04-15 17:46:22 +00:00
- cron
cron:
- daily
2023-04-15 17:29:07 +00:00
steps:
- name: Check subs
image: alpine:latest
commands:
- apk update
2023-04-15 17:30:00 +00:00
- apk add coreutils perl
2023-04-15 17:44:05 +00:00
- ./money/compare.pl > message_file.tpl
- name: Send telegram notification
when:
status:
- failure
image: appleboy/drone-telegram
settings:
token:
from_secret: TELEGRAM_TOKEN
to: 131601077
message_file: message_file.tpl