Setup check-da-helm

This commit is contained in:
Nikolai Rodionov 2023-12-08 14:12:48 +01:00
parent 94f81a9213
commit cb7188064a
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10

View File

@ -2,8 +2,8 @@
# -- Check da helm pipeline # -- Check da helm pipeline
# ---------------------------------------------- # ----------------------------------------------
when: when:
- event: push - event: cron
# cron: nightly cron: nightly
steps: steps:
check badhouseplants: check badhouseplants:
image: ghcr.io/allanger/check-da-helm-helmfile-secrets:stable image: ghcr.io/allanger/check-da-helm-helmfile-secrets:stable
@ -12,20 +12,23 @@ steps:
environment: environment:
RUST_LOG: info RUST_LOG: info
commands: commands:
- echo "Hey, bud, some helm releases are outdated:" > message_file.tpl - cdh --kind helmfile -p $CI_WORKSPACE/helmfile.yaml --helmfile-environment badhouseplants -o --output html >> result.html
- cdh --kind helmfile -p $DRONE_WORKSPACE/helmfile.yaml --helmfile-environment badhouseplants -o >> message_file.tpl
notification: notification:
image: deblan/woodpecker-email image: deblan/woodpecker-email
settings: settings:
from.address: woody@badhouseplants.net from: woody@badhouseplants.net
from.name: Woody Woodpecker
host: badhouseplants.net host: badhouseplants.net
skip_verify: true
no_starttls: false
username: username:
from_secret: smtp_username from_secret: smtp_username
password: password:
from_secret: smtp_password from_secret: smtp_password
recipients: recipients:
- allanger@badhouseplants.net
subject: CDH result subject: CDH result
target: main target: main
recipients_only: true
attachment: result.html
when: when:
- status: [success, failure] - status: [success, failure]