when: event: - push matrix: include: - NAME: badhouseplants ENV: badhouseplants .opts: &opts secrets: - sops_age_key image: ghcr.io/helmfile/helmfile:latest backend_options: kubernetes: serviceAccountName: woodpecker-ci resources: requests: memory: 1200Mi cpu: 1200m limits: memory: 1200Mi cpu: 1200m steps: diff: !!merge <<: *opts when: - branch: exclude: - main commands: - sed -i "/\b\(kubeContext\)\b/d" common/environments.yaml - helmfile -e "${ENV}" diff diff: !!merge <<: *opts when: - branch: include: - main commands: - sed -i "/\b\(kubeContext\)\b/d" common/environments.yaml - helmfile -e "${ENV}" apply