Fix ci and add sa name tp the job
Some checks failed
ci/woodpecker/push/helmfile Pipeline failed

This commit is contained in:
Nikolai Rodionov 2024-10-10 07:43:58 +02:00
parent 79cc2b3304
commit 17f5685a71
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD

View File

@ -5,37 +5,34 @@ 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: 500Mi
cpu: 200m
limits:
memory: 500Mi
cpu: 200m
steps:
test:
image: ghcr.io/helmfile/helmfile:latest
diff:
!!merge <<: *opts
when:
- branch:
exclude:
- main
commands:
- kubectl get all -A
backend_options:
kubernetes:
serviceAccountName: woodpecker-ci
resources:
requests:
memory: 500Mi
cpu: 200m
limits:
memory: 500Mi
cpu: 200m
build:
image: ghcr.io/helmfile/helmfile:latest
commands:
- mkdir ~/.kube
- echo $K8S_CONFIG | base64 -d > ~/.kube/config
- helmfile -e "${ENV}" diff
secrets:
- k8s_config
- sops_age_key
backend_options:
kubernetes:
serviceAccountName: woodpecker-ci
resources:
requests:
memory: 500Mi
cpu: 200m
limits:
memory: 500Mi
cpu: 200m
diff:
!!merge <<: *opts
when:
- branch:
include:
- main
commands:
- helmfile -e "${ENV}" apply