fix(Dockerfile): install condition

Adapt the bash if else condition to install latest or released helm version.
This commit is contained in:
Markus Pesch 2024-12-17 09:53:51 +01:00
parent 361bfe9314
commit 22ba0676d8
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -5,8 +5,8 @@ ARG HELM_VERSION
RUN apk add bash curl git openssl && \ RUN apk add bash curl git openssl && \
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 --output /tmp/install.sh curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 --output /tmp/install.sh
RUN [[ ${HELM_VERSION} == "" ]]; bash /tmp/install.sh RUN if [[ -z "${HELM_VERSION+x}" ]]; then bash /tmp/install.sh; fi
RUN [[ ${HELM_VERSION} != "" ]]; bash /tmp/install.sh --version ${HELM_VERSION} RUN if [[ -n "${HELM_VERSION+x}" ]]; then bash /tmp/install.sh --version "${HELM_VERSION}"; fi
RUN rm /tmp/install.sh RUN rm /tmp/install.sh