From 9b9c29b16e294aa151eba155b799a8ec0e8ccd02 Mon Sep 17 00:00:00 2001 From: robjuz Date: Wed, 9 Sep 2020 18:44:24 +0000 Subject: [PATCH] fix: Respect chart lockfile when present --- src/bin/auto-deploy | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin/auto-deploy b/src/bin/auto-deploy index 47545af..2e34463 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() { -- GitLab