k8s-deployment/.woodpecker/helmfile.yaml

41 lines
819 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:04:48 +00:00
memory: 700Mi
cpu: 700m
2024-10-10 05:43:58 +00:00
limits:
2024-10-10 06:05:16 +00:00
memory: 700Mi
2024-10-10 06:19:19 +00:00
cpu: 700m
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