diff --git a/.drone.yml b/.drone.yml index 2ae9841..b594fd0 100644 --- a/.drone.yml +++ b/.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 diff --git a/badhouseplants/helmfile.yaml b/badhouseplants/helmfile.yaml index 54887d1..79434f9 100644 --- a/badhouseplants/helmfile.yaml +++ b/badhouseplants/helmfile.yaml @@ -87,5 +87,3 @@ bases: - ../environments.yaml - ../repositories.yaml - #helmfiles: - # - namespaces.yaml diff --git a/message_file.tpl b/message_file.tpl new file mode 100644 index 0000000..e69de29 diff --git a/repositories.yaml b/repositories.yaml index 347833f..64e3842 100644 --- a/repositories.yaml +++ b/repositories.yaml @@ -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