feat: add dir output to render
All checks were successful
renovate / renovate (push) Successful in 1m43s

This commit is contained in:
2026-03-14 23:33:15 -05:00
parent ed57ae842b
commit 2372ab4b69

View File

@@ -49,7 +49,7 @@ jobs:
ref: manifests ref: manifests
path: infrastructure-manifests path: infrastructure-manifests
- name: Set up Helm - name: Set Up Helm
uses: azure/setup-helm@v4 uses: azure/setup-helm@v4
with: with:
token: ${{ secrets.GITEA_TOKEN }} token: ${{ secrets.GITEA_TOKEN }}
@@ -150,7 +150,7 @@ jobs:
echo "BRANCH_NAME=${BRANCH_NAME}" >> "$GITHUB_OUTPUT" echo "BRANCH_NAME=${BRANCH_NAME}" >> "$GITHUB_OUTPUT"
- name: Check which Directories have Changes - name: Check Which Directories Have Changes
id: check-dir-changes id: check-dir-changes
env: env:
RENDER_ALL: ${{ steps.mode.outputs.render_all }} RENDER_ALL: ${{ steps.mode.outputs.render_all }}
@@ -174,6 +174,7 @@ jobs:
echo "" echo ""
echo "${RENDER_DIR}" echo "${RENDER_DIR}"
echo ""
echo "----" echo "----"
echo "changes-detected=true" >> "$GITHUB_OUTPUT" echo "changes-detected=true" >> "$GITHUB_OUTPUT"
@@ -237,6 +238,7 @@ jobs:
cd "${MANIFEST_DIR}" cd "${MANIFEST_DIR}"
echo ">> Remove manifest files and rebuild from source ..." echo ">> Remove manifest files and rebuild from source ..."
echo ""
for DIR in ${RENDER_DIR}; do for DIR in ${RENDER_DIR}; do
CHART_PATH="${MANIFEST_DIR}/clusters/${CLUSTER}/manifests/${DIR}" CHART_PATH="${MANIFEST_DIR}/clusters/${CLUSTER}/manifests/${DIR}"
@@ -280,20 +282,16 @@ jobs:
case "${CHART_NAME}" in case "${CHART_NAME}" in
"stack") "stack")
NAMESPACE="argocd" NAMESPACE="argocd"
echo ""
echo ">> Special Rendering into 'argocd' namespace ..." echo ">> Special Rendering into 'argocd' namespace ..."
;; ;;
"cilium" | "coredns" | "metrics-server" | "prometheus-operator-crds") "cilium" | "coredns" | "metrics-server" | "prometheus-operator-crds")
NAMESPACE="kube-system" NAMESPACE="kube-system"
echo ""
echo ">> Special Rendering for ${CHART_NAME} into 'kube-system' namespace ..." echo ">> Special Rendering for ${CHART_NAME} into 'kube-system' namespace ..."
;; ;;
*) *)
echo "" echo ">> Standard Rendering ..."
echo ">> Standard Rendering for ${CHART_NAME} ..."
esac esac
echo ""
echo ">> Formating rendered template ..." echo ">> Formating rendered template ..."
local TEMPLATE local TEMPLATE
TEMPLATE=$(helm template "${CHART_NAME}" ./ --namespace "${NAMESPACE}" --include-crds --dry-run=server --api-versions "gateway.networking.k8s.io/v1/HTTPRoute") TEMPLATE=$(helm template "${CHART_NAME}" ./ --namespace "${NAMESPACE}" --include-crds --dry-run=server --api-versions "gateway.networking.k8s.io/v1/HTTPRoute")
@@ -307,8 +305,10 @@ jobs:
done done
echo ">> Manifests for ${CHART_NAME} rendered successfully to $OUTPUT_FOLDER:"
echo ""
ls $OUTPUT_FOLDER
echo "" echo ""
echo ">> Manifests for ${CHART_NAME} rendered successfully."
else else
echo "" echo ""
@@ -480,11 +480,13 @@ jobs:
else else
echo "" echo ""
echo ">> Failed to create PR, HTTP status code: $HTTP_STATUS"; exit 1 echo ">> Failed to create PR, HTTP status code: $HTTP_STATUS"
echo "" echo ""
echo "----" echo "----"
exit 1
fi fi
- name: Update Pull Request - name: Update Pull Request