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