Compare commits
3 Commits
bc58cfbe5c
...
0482525010
| Author | SHA1 | Date | |
|---|---|---|---|
|
0482525010
|
|||
| 5bad734c75 | |||
| 0343b2d9ee |
@@ -35,7 +35,7 @@ jobs:
|
||||
for cluster in $CLUSTERS; do
|
||||
mkdir -p ${{ gitea.workspace }}/clusters/$cluster/manifests
|
||||
|
||||
for chart_path in clusters/$cluster/helm/*; do
|
||||
for chart_path in ${{ gitea.workspace }}/clusters/$cluster/helm/*; do
|
||||
chart_name=$(basename "$chart_path")
|
||||
|
||||
echo ">> Rendering chart: $chart_name"
|
||||
@@ -46,18 +46,23 @@ jobs:
|
||||
|
||||
cd $chart_path
|
||||
|
||||
echo ""
|
||||
echo ">> Building helm dependency ..."
|
||||
helm dependency build
|
||||
|
||||
echo ""
|
||||
echo ">> Linting helm ..."
|
||||
helm lint --namespace "$chart_name" --with-subcharts
|
||||
|
||||
echo ""
|
||||
echo ">> Rendering templates ..."
|
||||
helm template "$chart_name" "$chart_path" --namespace "$chart_name" > "$OUTPUT_FILE"
|
||||
helm template "$chart_name" ./ --namespace "$chart_name" --include-crds > "$OUTPUT_FILE"
|
||||
|
||||
echo ""
|
||||
echo ">> Manifests for $chart_name rendered to $OUTPUT_FILE"
|
||||
echo ""
|
||||
else
|
||||
echo ""
|
||||
echo ">> Directory $chart_path does not contain a Chart.yaml. Skipping ..."
|
||||
echo ""
|
||||
fi
|
||||
@@ -82,7 +87,7 @@ jobs:
|
||||
labels: |
|
||||
manifests
|
||||
automated
|
||||
add-paths: "clusters/*/rendered-manifests/"
|
||||
add-paths: "clusters/*/manifests/"
|
||||
|
||||
- name: ntfy Created
|
||||
uses: niniyas/ntfy-action@master
|
||||
|
||||
Reference in New Issue
Block a user