k8s-deployment/.woodpecker/helmfile.yaml

42 lines
866 B
YAML
Raw Permalink Normal View History

2024-10-16 19:20:13 +00:00
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: 1200Mi
# cpu: 2
# limits:
# memory: 1200Mi
# cpu: 2
steps:
diff:
!!merge <<: *opts
when:
- branch:
exclude:
- main
commands:
- sed -i "/\b\(kubeContext\)\b/d" common/environments.yaml
2024-12-16 14:46:04 +00:00
- helmfile -e "${ENV}" diff --concurrency 1 > ./diff
- cat ./diff
2024-10-16 19:20:13 +00:00
diff:
!!merge <<: *opts
when:
- branch:
include:
- main
commands:
- sed -i "/\b\(kubeContext\)\b/d" common/environments.yaml
- helmfile -e "${ENV}" apply