Skip to content

Commit

Permalink
feat(scripts): unpack subchart archives when building upgrade-job con…
Browse files Browse the repository at this point in the history
…tainer

Signed-off-by: Niladri Halder <[email protected]>
  • Loading branch information
niladrih committed Jan 4, 2024
1 parent 01ae550 commit 6e21932
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,13 @@ for name in $IMAGES; do
echo "Updating helm chart dependencies..."
# Helm chart directory path -- /scripts --> /chart
CHART_DIR="${SCRIPT_DIR}/../chart"
dep_chart_dir="${CHART_DIR}/charts"

$NIX_SHELL --run "helm dependency update ${CHART_DIR}"
for dep_chart_tar in "${dep_chart_dir}"/*.tgz; do
tar -xf "${dep_chart_tar}" -C "${dep_chart_dir}"
rm -f "${dep_chart_tar}"
done

# Set flag to true
_helm_dependencies_updated=true
Expand Down

0 comments on commit 6e21932

Please sign in to comment.