add telegram notifications for outdated charts
This commit is contained in:
parent
8cfd4bf88d
commit
63968337e2
14
.drone.yml
14
.drone.yml
@ -105,4 +105,16 @@ steps:
|
||||
SOPS_AGE_KEY:
|
||||
from_secret: SOPS_AGE_KEY
|
||||
commands:
|
||||
- cdh --kind helmfile -p $DRONE_WORKSPACE/helmfile.yaml --helmfile-environment badhouseplants -o
|
||||
- echo "Hey, bud, some helm releases are outdated:" > message_file.tpl
|
||||
- cdh --kind helmfile -p $DRONE_WORKSPACE/helmfile.yaml --helmfile-environment badhouseplants -o >> 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
|
||||
|
@ -87,5 +87,3 @@ bases:
|
||||
- ../environments.yaml
|
||||
- ../repositories.yaml
|
||||
|
||||
#helmfiles:
|
||||
# - namespaces.yaml
|
||||
|
0
message_file.tpl
Normal file
0
message_file.tpl
Normal file
@ -2,8 +2,6 @@
|
||||
repositories:
|
||||
- name: metrics-server
|
||||
url: https://kubernetes-sigs.github.io/metrics-server/
|
||||
- name: allanger-charts
|
||||
url: https://allanger.github.io/allanger-charts
|
||||
- name: jetstack
|
||||
url: https://charts.jetstack.io
|
||||
- name: istio
|
||||
|
Reference in New Issue
Block a user