From d4f18458de545c283731cf6ade9a54ffa3eb15e0 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Wed, 5 Aug 2020 08:18:08 +0200 Subject: [PATCH] ci: include build.env variables when installing Helm By default the install-helm.sh script uses "latest" as version for Helm. Unfortunately this version does not exist. The HELM_VERSION variable is already set in build.env, so source the configuration file as one of the first actions in install-helm.sh. Signed-off-by: Niels de Vos --- scripts/install-helm.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/install-helm.sh b/scripts/install-helm.sh index 77673a200..298a2e3f8 100755 --- a/scripts/install-helm.sh +++ b/scripts/install-helm.sh @@ -4,12 +4,15 @@ TEMP="/tmp/cephcsi-helm-test" +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" +# shellcheck source=build.env +[ ! -e "${SCRIPT_DIR}"/../build.env ] || source "${SCRIPT_DIR}"/../build.env + HELM="helm" HELM_VERSION=${HELM_VERSION:-"latest"} arch="${ARCH:-}" CEPHFS_CHART_NAME="ceph-csi-cephfs" RBD_CHART_NAME="ceph-csi-rbd" -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" DEPLOY_TIMEOUT=600 # ceph-csi specific variables