diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 75b08e7861df7ec522da5dad9973aa7a037dd63b..f4dd656c12fea4cb189743bc28f101ef18b3222a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -89,3 +89,20 @@ push-hugo: needs: - job: build-hugo artifacts: true + +# k8s image: + +build-k8s: + extends: .container-build + variables: + CONTEXT: images/k8s + +push-k8s: + extends: .container-push + variables: + CONTEXT: images/k8s + IMAGE: ci-images + TAG: k8s + needs: + - job: build-k8s + artifacts: true diff --git a/images/k8s/.dockerignore b/images/k8s/.dockerignore new file mode 100644 index 0000000000000000000000000000000000000000..72e8ffc0db8aad71a934dd11e5968bd5109e54b4 --- /dev/null +++ b/images/k8s/.dockerignore @@ -0,0 +1 @@ +* diff --git a/images/k8s/Dockerfile b/images/k8s/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..f2b45fcd3e22908f5028ae801967fb1cd76d0609 --- /dev/null +++ b/images/k8s/Dockerfile @@ -0,0 +1,13 @@ +FROM registry.hub.docker.com/library/golang:alpine3.14 as kind +RUN GO111MODULE=on go get sigs.k8s.io/kind@v0.11.1 + +FROM registry.hub.docker.com/library/alpine:3.14 +COPY --from=kind /go/bin/kind /usr/local/bin/ +# hadolint ignore=DL3018 +RUN apk add --update --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \ + helm \ + kubectl \ + && \ + apk add --update --no-cache \ + docker-cli \ + ;