From 79b301e4ef7e75a56ffbce5909e4e7b2fa41fd36 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 15 Mar 2026 00:34:47 -0500 Subject: [PATCH] feat: add helm repos --- .gitea/workflows/lint-test-helm.yaml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.gitea/workflows/lint-test-helm.yaml b/.gitea/workflows/lint-test-helm.yaml index 172830860..a19780424 100644 --- a/.gitea/workflows/lint-test-helm.yaml +++ b/.gitea/workflows/lint-test-helm.yaml @@ -260,6 +260,39 @@ jobs: token: ${{ secrets.GITEA_TOKEN }} version: v3.19.2 + - name: Add Repositories + env: + CHANGED_CHARTS: ${{ needs.lint-helm.outputs.chart-dir }} + run: | + echo ">> Adding repositories for chart dependencies ..." + echo "" + + for DIR in ${CHANGED_CHARTS}; do + helm dependency list --max-col-width 120 clusters/${CLUSTER}/helm/${DIR} 2> /dev/null \ + | tail -n +2 \ + | awk 'NF > 0 { print $1, $3 }' \ + | while read -r REPO_NAME REPO_URL; do + if [[ "${REPO_URL}" == oci://* ]]; then + echo ">> Ignoring OCI repo: ${REPO_URL}" + + elif [[ -n "${REPO_NAME}" && -n "${REPO_URL}" ]]; then + helm repo add "${REPO_NAME}" "${REPO_URL}" + + fi + + done || true + done + + if helm repo list > /dev/null 2>&1; then + echo "" + echo ">> Update repository cache ..." + helm repo update + + fi + + echo "" + echo "----" + - name: Validate Rendered Templates id: validate env: