From b0efec105290db626d558699df2700161394ba5e Mon Sep 17 00:00:00 2001 From: Hanjo Meinhardt Date: Sun, 26 Aug 2018 13:45:24 +0200 Subject: [PATCH] added helm to image --- .drone.yml | 6 +++++- Dockerfile | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d0ed112..39e1e95 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index 664b626..3d7a46d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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