36 lines
967 B
YAML
36 lines
967 B
YAML
# ----------------------------------------------
|
|
# -- Check da helm pipeline
|
|
# ----------------------------------------------
|
|
when:
|
|
- event: cron
|
|
cron: nightly
|
|
steps:
|
|
check badhouseplants:
|
|
image: ghcr.io/allanger/check-da-helm-helmfile-secrets:stable
|
|
secrets:
|
|
- sops_age_key
|
|
environment:
|
|
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:
|
|
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]
|