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
|
2024-10-14 06:17:54 +00:00
|
|
|
#resources:
|
|
|
|
# requests:
|
|
|
|
# memory: 1200Mi
|
|
|
|
# cpu: 2
|
|
|
|
# limits:
|
|
|
|
# memory: 1200Mi
|
|
|
|
# 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
|