diff --git a/src/bin/auto-deploy b/src/bin/auto-deploy index 47545af1eb67ee2f230aee47ca86f7166cf9d007..2e344631070e132f24821bdae4ff3cd27df87e86 100755 --- a/src/bin/auto-deploy +++ b/src/bin/auto-deploy @@ -59,8 +59,12 @@ function download_chart() { cp -R "$ASSETS_CHART_DIR" chart fi - helm dependency update chart/ - helm dependency build chart/ + if [[ -f chart/requirements.lock ]]; then + helm dependency build chart/ + else + helm dependency update chart/ + fi + } function add_chart_repository() {