k8s-deployment/.woodpecker/helmfile.yaml
Nikolai Rodionov 615f0883b8
Some checks failed
ci/woodpecker/push/helmfile Pipeline failed
Fix ci and add sa name tp the job
2024-10-10 08:19:19 +02:00

41 lines
819 B
YAML

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: 700Mi
cpu: 700m
limits:
memory: 700Mi
cpu: 700m
steps:
diff:
!!merge <<: *opts
when:
- branch:
exclude:
- main
commands:
- sed -i "/\b\(kubeContext\)\b/d" common/environments.yaml
- helmfile -e "${ENV}" diff
diff:
!!merge <<: *opts
when:
- branch:
include:
- main
commands:
- sed -i "/\b\(kubeContext\)\b/d" common/environments.yaml
- helmfile -e "${ENV}" apply