File tree Expand file tree Collapse file tree 7 files changed +4
-149
lines changed
Expand file tree Collapse file tree 7 files changed +4
-149
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44set -e
55
66# Default values
7+ DIST_DIR=" ../dist"
78CHART_DIR=" bingo"
89CHART_VERSION=$( grep ' version:' ${CHART_DIR} /Chart.yaml | awk ' {print $2}' )
910RELEASE_NAME=" bingo"
@@ -53,15 +54,15 @@ while [[ $# -gt 0 ]]; do
5354done
5455
5556echo " Packaging Helm chart ${CHART_DIR} version ${CHART_VERSION} ..."
56- helm package ${CHART_DIR}
57+ helm package ${CHART_DIR} --destination ${DIST_DIR}
5758
5859if [ " $DEPLOY " = true ]; then
5960 echo " Deploying chart to Kubernetes namespace ${NAMESPACE} with release name ${RELEASE_NAME} ..."
60- helm upgrade --install ${RELEASE_NAME} ${CHART_DIR} -${CHART_VERSION} .tgz --namespace ${NAMESPACE} --create-namespace
61+ helm upgrade --install ${RELEASE_NAME} ${DIST_DIR} / ${ CHART_DIR} -${CHART_VERSION} .tgz --namespace ${NAMESPACE} --create-namespace
6162
6263 echo " Deployment complete. You can access the application using:"
6364 echo " kubectl port-forward -n ${NAMESPACE} svc/${RELEASE_NAME} 8080:8080"
6465else
6566 echo " Chart packaged successfully. To deploy, run:"
66- echo " helm install ${RELEASE_NAME} ${CHART_DIR} -${CHART_VERSION} .tgz --namespace ${NAMESPACE} --create-namespace"
67+ echo " helm install ${RELEASE_NAME} ${DIST_DIR} / ${ CHART_DIR} -${CHART_VERSION} .tgz --namespace ${NAMESPACE} --create-namespace"
6768fi
You can’t perform that action at this time.
0 commit comments