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