Test notification
ci/woodpecker/push/helmfile/2 Pipeline was successful Details
ci/woodpecker/push/helmfile/1 Pipeline was successful Details

This commit is contained in:
Nikolai Rodionov 2023-12-13 22:15:08 +01:00
parent 92ce78edde
commit 6201faf1f7
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 17 additions and 0 deletions

View File

@ -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:

View File

@ -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]