k8s-deployment/.woodpecker/helmfile.yaml
Nikolai Rodionov 4251f028f7
All checks were successful
ci/woodpecker/push/helmfile Pipeline was successful
test
2024-12-16 15:56:25 +01:00

42 lines
866 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: 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
- helmfile -e "${ENV}" diff --concurrency 1 > ./diff
- cat ./diff
diff:
!!merge <<: *opts
when:
- branch:
include:
- main
commands:
- sed -i "/\b\(kubeContext\)\b/d" common/environments.yaml
- helmfile -e "${ENV}" apply