fix(Dockerfile): install condition
Adapt the bash if else condition to install latest or released helm version.
This commit is contained in:
parent
361bfe9314
commit
22ba0676d8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user