k8s-deployment/.woodpecker/helmfile.yaml

41 lines
815 B
YAML
Raw Normal View History

2024-09-20 15:20:06 +00:00
when:
event:
- push
matrix:
include:
- NAME: badhouseplants
ENV: badhouseplants
2024-10-10 05:43:58 +00:00
.opts: &opts
secrets:
- sops_age_key
image: ghcr.io/helmfile/helmfile:latest
backend_options:
kubernetes:
serviceAccountName: woodpecker-ci
resources:
requests:
2024-10-10 06:54:33 +00:00
memory: 1200Mi
2024-10-10 06:59:57 +00:00
cpu: 2
2024-10-10 05:43:58 +00:00
limits:
2024-10-10 06:54:33 +00:00
memory: 1200Mi
2024-10-10 06:59:57 +00:00
cpu: 2
2024-09-20 15:20:06 +00:00
steps:
2024-10-10 05:43:58 +00:00
diff:
!!merge <<: *opts
when:
- branch:
exclude:
- main
2024-09-20 15:20:06 +00:00
commands:
2024-10-10 05:59:29 +00:00
- sed -i "/\b\(kubeContext\)\b/d" common/environments.yaml
2024-09-20 15:20:06 +00:00
- helmfile -e "${ENV}" diff
2024-10-10 05:43:58 +00:00
diff:
!!merge <<: *opts
when:
- branch:
include:
- main
commands:
2024-10-10 05:59:29 +00:00
- sed -i "/\b\(kubeContext\)\b/d" common/environments.yaml
2024-10-10 05:43:58 +00:00
- helmfile -e "${ENV}" apply