added helm to image
This commit is contained in:
parent
d926063a6e
commit
b0efec1052
@ -6,8 +6,9 @@ pipeline:
|
|||||||
build_args:
|
build_args:
|
||||||
- BASE_IMAGE=google/cloud-sdk:${VERSION}
|
- BASE_IMAGE=google/cloud-sdk:${VERSION}
|
||||||
- KUBECTL_VERSION=${KUBECTL_VERSION}
|
- KUBECTL_VERSION=${KUBECTL_VERSION}
|
||||||
|
- HELM_VERSION=${HELM_VERSION}
|
||||||
tags:
|
tags:
|
||||||
- ${VERSION}_kubectl-${KUBECTL_VERSION}
|
- ${VERSION}_kubectl-${KUBECTL_VERSION}_helm-${HELM_VERSION}
|
||||||
secrets: [ docker_username, docker_password ]
|
secrets: [ docker_username, docker_password ]
|
||||||
when:
|
when:
|
||||||
branch: master
|
branch: master
|
||||||
@ -19,3 +20,6 @@ matrix:
|
|||||||
- v1.9.10
|
- v1.9.10
|
||||||
- v1.10.7
|
- v1.10.7
|
||||||
- v1.11.2
|
- 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
|
# download and install kubectl
|
||||||
ARG KUBECTL_VERSION
|
ARG KUBECTL_VERSION
|
||||||
|
|
||||||
RUN curl -L https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl -o /usr/bin/kubectl \
|
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
|
&& 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
|
||||||
|
Reference in New Issue
Block a user