Skip to content

Commit

Permalink
handle empty DEPLOY_CHART_PATH (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
silverjam authored Feb 7, 2024
1 parent d01f4f3 commit b4c0212
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,14 @@ HELM_COMMAND="${HELM_COMMAND} ${DEPLOY_NAME}"

if [ "${HELM_ACTION}" == "install" ]; then
if [ "${OCI_REGISTRY}" == "true" ]; then
DEPLOY_CHART_PATH="${HELM_REPOSITORY}/${DEPLOY_CHART_PATH}"
if [ -n "${DEPLOY_CHART_PATH}" ]; then
DEPLOY_CHART_PATH="${HELM_REPOSITORY}/${DEPLOY_CHART_PATH}"
else
DEPLOY_CHART_PATH="${HELM_REPOSITORY}"
fi
fi
HELM_COMMAND="${HELM_COMMAND} ${DEPLOY_CHART_PATH}"
fi

echo "Executing: ${HELM_COMMAND} ${HELM_EXTRA_ARGS}"
${HELM_COMMAND} ${HELM_EXTRA_ARGS}
${HELM_COMMAND} ${HELM_EXTRA_ARGS}

0 comments on commit b4c0212

Please sign in to comment.