From 22ba0676d8e053942fb79cac9f7f41956faea9c2 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Tue, 17 Dec 2024 09:53:51 +0100 Subject: [PATCH] fix(Dockerfile): install condition Adapt the bash if else condition to install latest or released helm version. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8f75fa1..4c8ccd4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,8 @@ ARG HELM_VERSION RUN apk add bash curl git openssl && \ curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 --output /tmp/install.sh -RUN [[ ${HELM_VERSION} == "" ]]; bash /tmp/install.sh -RUN [[ ${HELM_VERSION} != "" ]]; bash /tmp/install.sh --version ${HELM_VERSION} +RUN if [[ -z "${HELM_VERSION+x}" ]]; then bash /tmp/install.sh; fi +RUN if [[ -n "${HELM_VERSION+x}" ]]; then bash /tmp/install.sh --version "${HELM_VERSION}"; fi RUN rm /tmp/install.sh