File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ REPO_URL=""
3838
3939main () {
4040 if [[ -z " $HELM_VERSION " ]]; then
41- HELM_VERSION=" 3.4.1 "
41+ HELM_VERSION=" 3.4.2 "
4242 fi
4343
4444 if [[ -z " $CHARTS_DIR " ]]; then
@@ -125,10 +125,15 @@ lint() {
125125}
126126
127127package () {
128- [[ -z $APP_VERSION ]] || APP_VERSION_CMD=" --app-version $APP_VERSION " ;
129- [[ -z $CHART_VERSION ]] || CHART_VERSION_CMD=" --version $CHART_VERSION "
128+ if [[ ! -z " $APP_VERSION " ]]; then
129+ APP_VERSION_CMD=" --app-version $APP_VERSION "
130+ fi
131+
132+ if [[ ! -z " $CHART_VERSION " ]]; then
133+ CHART_VERSION_CMD=" --version $CHART_VERSION "
134+ fi
130135
131- helm package ${CHARTS[*]} --destination ${CHARTS_TMP_DIR} " $APP_VERSION_CMD " " $CHART_VERSION_CMD "
136+ helm package ${CHARTS[*]} --destination ${CHARTS_TMP_DIR} $APP_VERSION_CMD$CHART_VERSION_CMD
132137}
133138
134139upload () {
You can’t perform that action at this time.
0 commit comments