7 Commits

Author SHA1 Message Date
0f0dd7a91c Update php Docker tag to v8.5.0
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
lint-test-helm / helm-lint (pull_request) Successful in 19s
2025-11-30 04:33:19 +00:00
274ab32e2a add build and lint
All checks were successful
renovate / renovate (push) Successful in 1m41s
2025-11-29 22:31:45 -06:00
ce87523597 fix path
All checks were successful
renovate / renovate (push) Successful in 1m29s
2025-11-29 22:25:40 -06:00
25710206d5 fix env
All checks were successful
renovate / renovate (push) Successful in 1m18s
2025-11-29 22:23:16 -06:00
c705885dda fix path
All checks were successful
renovate / renovate (push) Successful in 2m23s
2025-11-29 22:03:01 -06:00
783d307998 add dispatch
All checks were successful
renovate / renovate (push) Successful in 2m5s
2025-11-29 21:49:49 -06:00
06397c2b57 fix render
All checks were successful
renovate / renovate (push) Successful in 1m40s
2025-11-29 21:45:18 -06:00
2 changed files with 28 additions and 13 deletions

View File

@@ -8,6 +8,8 @@ on:
- "clusters/**" - "clusters/**"
- ! "clusters/*/archive" - ! "clusters/*/archive"
workflow_dispatch:
jobs: jobs:
render-manifests-helm: render-manifests-helm:
runs-on: ubuntu-js runs-on: ubuntu-js
@@ -31,31 +33,41 @@ jobs:
CLUSTERS: cl01tl CLUSTERS: cl01tl
run: | run: |
for cluster in $CLUSTERS; do for cluster in $CLUSTERS; do
mkdir clusters/$CLUSTER/manifests mkdir clusters/$cluster/manifests
for chart_path in clusters/$CLUSTER/helm/; do for chart_path in clusters/$cluster/helm/*; do
chart_name=$(basename "$chart") chart_name=$(basename "$chart_path")
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" OUTPUT_FILE="clusters/$cluster/manifests/$chart_name.yaml"
helm template "$chart_name" "$chart" --namespace "$chart_name" > "$OUTPUT_FILE" echo ">> Building helm dependency ..."
helm dependency build
echo "Manifests for $chart_name rendered to $OUTPUT_FILE" echo ">> Linting helm ..."
helm lint "$chart_path" --namespace "$chart_name" --with-subcharts
helm template "$chart_name" "$chart_path" --namespace "$chart_name" > "$OUTPUT_FILE"
echo ">> Manifests for $chart_name rendered to $OUTPUT_FILE"
echo ""
else else
echo "Directory $chart_path does not contain a Chart.yaml. Skipping ..." echo ">> Directory $chart_path does not contain a Chart.yaml. Skipping ..."
echo ""
fi fi
done done
done done
- name: Create Pull Request - name: Create Pull Request
id: pull-request
uses: peter-evans/create-pull-request@v7 uses: peter-evans/create-pull-request@v7
with: with:
token: ${{ secrets.GITEA_TOKEN }} token: ${{ secrets.GITEA_TOKEN }}
commit-message: "chore: Update manifests after chart change" commit-message: "chore: Update manifests after chart change"
branch: auto/update-manifests branch: auto/update-manifests
branch-suffix: timestamp
base: manifests base: manifests
title: "Manifest Update: App Changes" title: "Manifest Update: App Changes"
body: | body: |
@@ -63,19 +75,22 @@ jobs:
* Triggered by workflow run ${{ github.run_id }} * Triggered by workflow run ${{ github.run_id }}
* Review the `files changed` tab for the full YAML diff. * Review the `files changed` tab for the full YAML diff.
labels: |
manifests
automated
add-paths: "clusters/*/rendered-manifests/" add-paths: "clusters/*/rendered-manifests/"
- name: ntfy Success - name: ntfy Created
uses: niniyas/ntfy-action@master uses: niniyas/ntfy-action@master
if: success() if: steps.pull-request.outputs.pull-request-operation == 'created'
with: with:
url: "${{ secrets.NTFY_URL }}" url: "${{ secrets.NTFY_URL }}"
topic: "${{ secrets.NTFY_TOPIC }}" topic: "${{ secrets.NTFY_TOPIC }}"
title: "Manifest Render Success - Infrastructure" title: "Manifest Render PR Created - Infrastructure"
priority: 3 priority: 3
headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}' headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}'
tags: action,successfully,completed tags: action,successfully,completed
details: "Manifest rendering for Infrastructure has succeeded" details: "Manifest rendering for Infrastructure has created PR ${{ steps.pull-request.outputs.pull-request-number }}!"
icon: "https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png" icon: "https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png"
- name: ntfy Failed - name: ntfy Failed

View File

@@ -36,7 +36,7 @@ shelly-plug:
main: main:
image: image:
repository: php repository: php
tag: 8.4.15-apache-bookworm tag: 8.5.0-apache-bookworm
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
env: env:
- name: SHELLY_HOSTNAME - name: SHELLY_HOSTNAME