Skip to content

Commit

Permalink
update helm top to not change dep versions (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzelei authored Nov 27, 2023
1 parent 651a52c commit 33eba6f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,15 @@ jobs:
yq -i '.appVersion = strenv(CHART_VERSION)' "$filepath"
done
for filepath in $(find charts/*/Chart.yaml -type f -name 'Chart.yaml') ; do
has_deps=$(yq -r '.dependencies[0].version' "$filepath")
if [ $has_deps != null ]; then
yq -i '.dependencies[].version = strenv(CHART_VERSION)' "$filepath"
fi
done
# the top level helm chart references local copies which are set to version: 0
# as such, we don't want to set their versions because then helm will error saying it can't find them when we run a "helm dep up"
# in the future we can uncomment this if we want the top level chart to reference the real oci artifacts instead of local
# for filepath in $(find charts/*/Chart.yaml -type f -name 'Chart.yaml') ; do
# has_deps=$(yq -r '.dependencies[0].version' "$filepath")
# if [ $has_deps != null ]; then
# yq -i '.dependencies[].version = strenv(CHART_VERSION)' "$filepath"
# fi
# done
- name: Install Helm
uses: azure/setup-helm@v3
Expand Down

0 comments on commit 33eba6f

Please sign in to comment.