Compare commits
2 Commits
1382e3caf3
...
bbd77f8e52
| Author | SHA1 | Date | |
|---|---|---|---|
|
bbd77f8e52
|
|||
| 1c100f1c6b |
@@ -33,7 +33,7 @@ jobs:
|
|||||||
CLUSTERS: cl01tl
|
CLUSTERS: cl01tl
|
||||||
run: |
|
run: |
|
||||||
for cluster in $CLUSTERS; do
|
for cluster in $CLUSTERS; do
|
||||||
mkdir clusters/$cluster/manifests
|
mkdir -p ${{ gitea.workspace }}/clusters/$cluster/manifests
|
||||||
|
|
||||||
for chart_path in clusters/$cluster/helm/*; do
|
for chart_path in clusters/$cluster/helm/*; do
|
||||||
chart_name=$(basename "$chart_path")
|
chart_name=$(basename "$chart_path")
|
||||||
@@ -41,7 +41,8 @@ jobs:
|
|||||||
echo ">> Rendering chart: $chart_name"
|
echo ">> Rendering chart: $chart_name"
|
||||||
|
|
||||||
if [ -f "$chart_path/Chart.yaml" ]; then
|
if [ -f "$chart_path/Chart.yaml" ]; then
|
||||||
OUTPUT_FILE="clusters/$cluster/manifests/$chart_name.yaml"
|
mkdir -p ${{ gitea.workspace }}/clusters/$cluster/manifests/$chart_name
|
||||||
|
OUTPUT_FILE="${{ gitea.workspace }}/clusters/$cluster/manifests/$chart_name/$chart_name.yaml"
|
||||||
|
|
||||||
cd $chart_path
|
cd $chart_path
|
||||||
|
|
||||||
@@ -51,6 +52,7 @@ jobs:
|
|||||||
echo ">> Linting helm ..."
|
echo ">> Linting helm ..."
|
||||||
helm lint --namespace "$chart_name" --with-subcharts
|
helm lint --namespace "$chart_name" --with-subcharts
|
||||||
|
|
||||||
|
echo ">> Rendering templates ..."
|
||||||
helm template "$chart_name" "$chart_path" --namespace "$chart_name" > "$OUTPUT_FILE"
|
helm template "$chart_name" "$chart_path" --namespace "$chart_name" > "$OUTPUT_FILE"
|
||||||
|
|
||||||
echo ">> Manifests for $chart_name rendered to $OUTPUT_FILE"
|
echo ">> Manifests for $chart_name rendered to $OUTPUT_FILE"
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ services:
|
|||||||
- /dev/net/tun:/dev/net/tun
|
- /dev/net/tun:/dev/net/tun
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
image: docker.io/postgres:17.7-alpine3.21
|
image: docker.io/postgres:18.1-alpine3.21
|
||||||
container_name: gitea-postgres
|
container_name: gitea-postgres
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
|||||||
Reference in New Issue
Block a user