Skip to content

Commit

Permalink
fix frontend chart publish (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzelei authored Dec 11, 2023
1 parent f49ce16 commit 3fb4e09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ jobs:
with:
cmd: |
# Recursively finds all Chart.yaml files and sets their version and appVersion to the github ref
for filepath in $(find frontend/charts/** -type f -name 'Chart.yaml') ; do
for filepath in $(find frontend/apps/web/charts/** -type f -name 'Chart.yaml') ; do
echo "$filepath"
yq -i '.version = strenv(CHART_VERSION)' "$filepath"
yq -i '.appVersion = strenv(CHART_VERSION)' "$filepath"
done
for filepath in $(find frontend/charts/*/Chart.yaml -type f -name 'Chart.yaml') ; do
for filepath in $(find frontend/apps/web/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"
Expand All @@ -257,10 +257,10 @@ jobs:
shell: bash
run: |
# Finds all root charts and packages up their dependencies
find frontend/charts/*/Chart.yaml -type f -name 'Chart.yaml' | sed -r 's|/[^/]+$||' | sort | uniq | xargs -L 1 helm dep up
find frontend/apps/web/charts/*/Chart.yaml -type f -name 'Chart.yaml' | sed -r 's|/[^/]+$||' | sort | uniq | xargs -L 1 helm dep up
# Runs through root charts and packages them
for filedir in frontend/charts/*/ ; do
for filedir in frontend/apps/web/charts/*/ ; do
echo "$filedir"
helm package "$filedir"
done
Expand Down

0 comments on commit 3fb4e09

Please sign in to comment.