From cb7188064ac4453b50244ad65f659d7788cd381f Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Fri, 8 Dec 2023 14:12:48 +0100 Subject: [PATCH] Setup check-da-helm --- .woodpecker/{.cdh.yml.back => .cdh.yml} | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) rename .woodpecker/{.cdh.yml.back => .cdh.yml} (64%) diff --git a/.woodpecker/.cdh.yml.back b/.woodpecker/.cdh.yml similarity index 64% rename from .woodpecker/.cdh.yml.back rename to .woodpecker/.cdh.yml index 89050ab..8298b38 100644 --- a/.woodpecker/.cdh.yml.back +++ b/.woodpecker/.cdh.yml @@ -2,8 +2,8 @@ # -- Check da helm pipeline # ---------------------------------------------- when: - - event: push - # cron: nightly + - event: cron + cron: nightly steps: check badhouseplants: image: ghcr.io/allanger/check-da-helm-helmfile-secrets:stable @@ -12,20 +12,23 @@ steps: 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 + - cdh --kind helmfile -p $CI_WORKSPACE/helmfile.yaml --helmfile-environment badhouseplants -o --output html >> result.html notification: image: deblan/woodpecker-email settings: - from.address: woody@badhouseplants.net - from.name: Woody Woodpecker + from: woody@badhouseplants.net host: badhouseplants.net + skip_verify: true + no_starttls: false username: from_secret: smtp_username password: from_secret: smtp_password recipients: + - allanger@badhouseplants.net subject: CDH result target: main + recipients_only: true + attachment: result.html when: - status: [success, failure]