1
0
Fork 0

added helm to image

master
Hanjo Meinhardt 6 years ago
parent d926063a6e
commit b0efec1052

@ -6,8 +6,9 @@ pipeline:
build_args:
- BASE_IMAGE=google/cloud-sdk:${VERSION}
- KUBECTL_VERSION=${KUBECTL_VERSION}
- HELM_VERSION=${HELM_VERSION}
tags:
- ${VERSION}_kubectl-${KUBECTL_VERSION}
- ${VERSION}_kubectl-${KUBECTL_VERSION}_helm-${HELM_VERSION}
secrets: [ docker_username, docker_password ]
when:
branch: master
@ -19,3 +20,6 @@ matrix:
- v1.9.10
- v1.10.7
- v1.11.2
HELM_VERSION:
- v2.10.0
- v2.9.1

@ -5,6 +5,12 @@ RUN apk add -U --no-cache openssl
# download and install kubectl
ARG KUBECTL_VERSION
RUN curl -L https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl -o /usr/bin/kubectl \
&& chmod +x /usr/bin/kubectl
ARG HELM_VERSION
RUN curl -LO https://storage.googleapis.com/kubernetes-helm/helm-$HELM_VERSION-linux-amd64.tar.gz \
&& tar xfvz helm-$HELM_VERSION-linux-amd64.tar.gz \
&& mv linux-amd64/helm /usr/bin/helm \
&& rm -rf linux-amd64 #\
&& rm helm-$HELM_VERSION-linux-amd64.tar.gz