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:
|
|
|
|
memory: 500Mi
|
|
|
|
cpu: 200m
|
|
|
|
limits:
|
|
|
|
memory: 500Mi
|
|
|
|
cpu: 200m
|
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
|