diff --git a/.woodpecker/.cdh.yml b/.woodpecker/.cdh.yml index 8298b38..9f09f51 100644 --- a/.woodpecker/.cdh.yml +++ b/.woodpecker/.cdh.yml @@ -13,6 +13,7 @@ steps: RUST_LOG: info commands: - cdh --kind helmfile -p $CI_WORKSPACE/helmfile.yaml --helmfile-environment badhouseplants -o --output html >> result.html + notification: image: deblan/woodpecker-email settings: diff --git a/.woodpecker/.helmfile.yml b/.woodpecker/.helmfile.yml index 355d333..ccf7aab 100644 --- a/.woodpecker/.helmfile.yml +++ b/.woodpecker/.helmfile.yml @@ -16,6 +16,22 @@ steps: - mkdir $HOME/.kube - echo "$KUBECONFIG_CONTENT" > $HOME/.kube/config && chmod 0600 $HOME/.kube/config - helmfile -e $ENVIRONMENT diff --suppress-secrets + + notification: + image: deblan/woodpecker-email + settings: + from: woody@badhouseplants.net + host: badhouseplants.net + username: + from_secret: smtp_username + password: + from_secret: smtp_password + recipients: + - allanger@badhouseplants.net + subject: CDH result + target: main + when: + - status: [success, failure] apply: image: ghcr.io/helmfile/helmfile:canary secrets: [sops_age_key, kubeconfig_content]