This repository has been archived on 2024-09-11. You can view files and clone it, but cannot push or open issues or pull requests.
k8s-cluster-config/.woodpecker/.cdh.yml.back
2023-10-29 10:56:21 +01:00

32 lines
936 B
Plaintext

# ----------------------------------------------
# -- Check da helm pipeline
# ----------------------------------------------
when:
- event: push
# cron: nightly
steps:
check badhouseplants:
image: ghcr.io/allanger/check-da-helm-helmfile-secrets:stable
secrets:
- sops_age_key
environment:
RUST_LOG: info
commands:
- 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
notification:
image: deblan/woodpecker-email
settings:
from.address: woody@badhouseplants.net
from.name: Woody Woodpecker
host: badhouseplants.net
username:
from_secret: smtp_username
password:
from_secret: smtp_password
recipients:
subject: CDH result
target: main
when:
- status: [success, failure]