---
# ----------------------------------------------
# -- Helmfile diff changes
kind: pipeline
type: kubernetes
name: Show helmfile diffs
trigger:
branch:
exclude:
- main
event:
- push
steps:
- name: Diff badhouseplants
image: ghcr.io/helmfile/helmfile:canary
environment:
KUBECONFIG_CONTENT:
from_secret: KUBECONFIG_CONTENT
SOPS_AGE_KEY:
from_secret: SOPS_AGE_KEY
commands:
- mkdir $HOME/.kube
- echo $KUBECONFIG_CONTENT | base64 -d > $HOME/.kube/config
- helmfile -e badhouseplants diff --suppress-secrets
- name: Diff eterosoft
- helmfile -e etersoft diff --suppress-secrets
# -- Helmfile apply changes
name: Apply helmfile changes
- name: Apply badhouseplants
- helmfile -e badhouseplants apply --suppress-secrets
- name: Apply eterosoft
- helmfile -e etersoft apply --suppress-secrets