Fix version set

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2021-01-06 15:57:44 +02:00
parent 29216666e5
commit 01e285c526
No known key found for this signature in database
GPG key ID: 3299AEB0E4085BAF

View file

@ -38,7 +38,7 @@ REPO_URL=""
main() { main() {
if [[ -z "$HELM_VERSION" ]]; then if [[ -z "$HELM_VERSION" ]]; then
HELM_VERSION="3.4.1" HELM_VERSION="3.4.2"
fi fi
if [[ -z "$CHARTS_DIR" ]]; then if [[ -z "$CHARTS_DIR" ]]; then
@ -125,10 +125,15 @@ lint() {
} }
package() { package() {
[[ -z $APP_VERSION ]] || APP_VERSION_CMD=" --app-version $APP_VERSION"; if [[ ! -z "$APP_VERSION" ]]; then
[[ -z $CHART_VERSION ]] || CHART_VERSION_CMD=" --version $CHART_VERSION" APP_VERSION_CMD=" --app-version $APP_VERSION"
fi
helm package ${CHARTS[*]} --destination ${CHARTS_TMP_DIR} "$APP_VERSION_CMD" "$CHART_VERSION_CMD" if [[ ! -z "$CHART_VERSION" ]]; then
CHART_VERSION_CMD=" --version $CHART_VERSION"
fi
helm package ${CHARTS[*]} --destination ${CHARTS_TMP_DIR} $APP_VERSION_CMD$CHART_VERSION_CMD
} }
upload() { upload() {