Skip to content

Commit

Permalink
Set chart file order
Browse files Browse the repository at this point in the history
  • Loading branch information
greggbjensen committed Aug 15, 2024
1 parent c5b48b2 commit 47d9b89
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/charts-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,24 +52,22 @@ jobs:
--create-namespace \
--set installCRDs=true
chartFiles=$(find charts -name "Chart.yaml" -print0 | xargs -0 realpath)
chartFiles=("charts/prdeploy-api", "charts/prdeploy-app", "charts/prdeploy-webhooks", "charts/prdeploy")
mkdir helm-charts
cd helm-charts
for chartFile in $chartFiles
do
chart=$(dirname $chartFile)
name=$(basename chart)
sed -i "s/^\(app\)\?\(\s*[Vv]ersion:\s*\).\+/\1\2""$VERSION""/" $chartFile
for chartFile in ${chartFiles[@]}; do
echo "**Building chart $chartFile **"
chart=$(dirname $chartFile)
name=$(basename chart)
cat $chartFile
sed -i "s/^\(app\)\?\(\s*[Vv]ersion:\s*\).\+/\1\2""$VERSION""/" $chartFile
helm dependency update $chart
helm lint $chart
helm install $name $chart --dry-run --debug
helm package $chart # Packages files to helm-charts.
helm dependency update $chart
helm lint $chart
helm install $name $chart --dry-run --debug
helm package $chart # Packages files to helm-charts.
done
- name: Push Helm charts
Expand Down
2 changes: 1 addition & 1 deletion charts/prdeploy-app/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
The prdeploy-api is installed and running at {{ include "prdeploy.url" . }}
The prdeploy-app is installed and running at {{ include "prdeploy.url" . }}

0 comments on commit 47d9b89

Please sign in to comment.