more testing
This commit is contained in:
parent
bb21788b6b
commit
6f499cf9d4
1 changed files with 12 additions and 1 deletions
|
@ -8,6 +8,12 @@ when:
|
|||
- main
|
||||
- release/**
|
||||
|
||||
services:
|
||||
docker:
|
||||
image: docker:dind
|
||||
environment:
|
||||
DOCKER_TLS_CERTDIR: ''
|
||||
|
||||
matrix:
|
||||
k8s:
|
||||
# from https://hub.docker.com/r/kindest/node/tags
|
||||
|
@ -18,9 +24,12 @@ pipeline:
|
|||
create-cluster:
|
||||
image: alpine:3.17.2
|
||||
pull: true
|
||||
environment:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
commands:
|
||||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community docker-cli kind
|
||||
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config
|
||||
- sleep 30s
|
||||
- docker info
|
||||
- kind create cluster --help
|
||||
- kind create cluster --name chart-testing --image kindest/node:${k8s} --wait 60s
|
||||
|
@ -38,11 +47,13 @@ pipeline:
|
|||
delete-cluster:
|
||||
image: alpine:3.17.2
|
||||
pull: true
|
||||
environment:
|
||||
DOCKER_HOST: tcp://docker:2375
|
||||
commands:
|
||||
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community docker-cli kind
|
||||
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config
|
||||
- kind delete cluster--name chart-testing
|
||||
- docker info
|
||||
- docker ps
|
||||
when:
|
||||
status:
|
||||
- success
|
||||
|
|
Loading…
Reference in a new issue