41 lines
746 B
YAML
41 lines
746 B
YAML
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: 500Mi
|
|
cpu: 200m
|
|
limits:
|
|
memory: 500Mi
|
|
cpu: 200m
|
|
steps:
|
|
diff:
|
|
!!merge <<: *opts
|
|
when:
|
|
- branch:
|
|
exclude:
|
|
- main
|
|
commands:
|
|
- kubectl config view
|
|
- kubectl cluster-info
|
|
- helmfile -e "${ENV}" diff
|
|
diff:
|
|
!!merge <<: *opts
|
|
when:
|
|
- branch:
|
|
include:
|
|
- main
|
|
commands:
|
|
- helmfile -e "${ENV}" apply
|