ci: add chart testing
This commit is contained in:
parent
e136187d47
commit
0ac33054a7
1 changed files with 44 additions and 0 deletions
44
.woodpecker/e2e.yml
Normal file
44
.woodpecker/e2e.yml
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
platform: linux/amd64
|
||||||
|
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- pull_request
|
||||||
|
- push
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
- release/**
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
k8s:
|
||||||
|
# from https://hub.docker.com/r/kindest/node/tags
|
||||||
|
- v1.25.3 # renovate: kindest
|
||||||
|
- v1.26.2 # renovate: kindest
|
||||||
|
|
||||||
|
pipeline:
|
||||||
|
create-cluster:
|
||||||
|
image: alpine:3.17.2
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing kind
|
||||||
|
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config
|
||||||
|
- kind create cluster --name chart-testing --node-image kindest/node:${k8s} --wait 60s
|
||||||
|
|
||||||
|
chart-testing:
|
||||||
|
image: alpine:3.17.2
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm kubectl kind
|
||||||
|
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config
|
||||||
|
- kubectl get no -o wide
|
||||||
|
|
||||||
|
delete-cluster:
|
||||||
|
image: alpine:3.17.2
|
||||||
|
pull: true
|
||||||
|
commands:
|
||||||
|
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing kind
|
||||||
|
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config
|
||||||
|
- kind delete cluster--name chart-testing
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
Loading…
Reference in a new issue