test docker dind

This commit is contained in:
Michael Kriese 2023-03-21 14:42:43 +01:00
parent cfd0c04479
commit 09b465dd0b
No known key found for this signature in database
GPG key ID: B83F553A0724D44E

View file

@ -8,6 +8,10 @@ when:
- main
- release/**
services:
docker:
image: docker:dind
matrix:
k8s:
# from https://hub.docker.com/r/kindest/node/tags
@ -18,6 +22,8 @@ pipeline:
create-cluster:
image: alpine:3.17.2
pull: true
environment:
DOCKER_HOST: tcp://0.0.0.0:2375
commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community kind
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config
@ -36,6 +42,8 @@ pipeline:
delete-cluster:
image: alpine:3.17.2
pull: true
environment:
DOCKER_HOST: tcp://0.0.0.0:2375
commands:
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/community kind
- export KUBECONFIG=$${CI_WORKSPACE}/kube.config