Fix ci and add sa name tp the job
This commit is contained in:
parent
9b9da89233
commit
5308b88bd4
@ -5,30 +5,10 @@ matrix:
|
|||||||
include:
|
include:
|
||||||
- NAME: badhouseplants
|
- NAME: badhouseplants
|
||||||
ENV: badhouseplants
|
ENV: badhouseplants
|
||||||
steps:
|
.opts: &opts
|
||||||
test:
|
|
||||||
image: ghcr.io/helmfile/helmfile:latest
|
|
||||||
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:
|
secrets:
|
||||||
- k8s_config
|
|
||||||
- sops_age_key
|
- sops_age_key
|
||||||
|
image: ghcr.io/helmfile/helmfile:latest
|
||||||
backend_options:
|
backend_options:
|
||||||
kubernetes:
|
kubernetes:
|
||||||
serviceAccountName: woodpecker-ci
|
serviceAccountName: woodpecker-ci
|
||||||
@ -39,3 +19,20 @@ steps:
|
|||||||
limits:
|
limits:
|
||||||
memory: 500Mi
|
memory: 500Mi
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
|
steps:
|
||||||
|
diff:
|
||||||
|
!!merge <<: *opts
|
||||||
|
when:
|
||||||
|
- branch:
|
||||||
|
exclude:
|
||||||
|
- main
|
||||||
|
commands:
|
||||||
|
- helmfile -e "${ENV}" diff
|
||||||
|
diff:
|
||||||
|
!!merge <<: *opts
|
||||||
|
when:
|
||||||
|
- branch:
|
||||||
|
include:
|
||||||
|
- main
|
||||||
|
commands:
|
||||||
|
- helmfile -e "${ENV}" apply
|
||||||
|
Loading…
Reference in New Issue
Block a user