build: update CSI_IMAGE_VERSION in deploy.sh

update deploy.sh to use correct CSI_IMAGE_VERSION
from the build.env.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 68adacad36)
This commit is contained in:
Madhu Rajanna 2020-12-09 17:42:14 +05:30 committed by mergify[bot]
parent 74930819dc
commit 997f9283f3

View File

@ -2,11 +2,12 @@
# shellcheck source=scripts/build_step.inc.sh # shellcheck source=scripts/build_step.inc.sh
source "$(dirname "${0}")/scripts/build_step.inc.sh" source "$(dirname "${0}")/scripts/build_step.inc.sh"
source "$(dirname "${0}")/build.env"
push_helm_charts() { push_helm_charts() {
PACKAGE=$1 PACKAGE=$1
CHARTDIR=$2 CHARTDIR=$2
VERSION=${ENV_CSI_IMAGE_VERSION//v/} # Set version (without v prefix) VERSION=${CSI_IMAGE_VERSION//v/} # Set version (without v prefix)
# update information in Chart.yaml if the branch is not master # update information in Chart.yaml if the branch is not master
if [ "$TRAVIS_BRANCH" != "master" ]; then if [ "$TRAVIS_BRANCH" != "master" ]; then