From a12ff7b8dac15e8413b3579c2727834610870b56 Mon Sep 17 00:00:00 2001 From: Mikhail Klimko Date: Thu, 13 Aug 2026 19:31:07 +0400 Subject: [PATCH] test: helm-docs --- scripts/helm-docs.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/helm-docs.sh b/scripts/helm-docs.sh index dd5ed058d..d7e282400 100755 --- a/scripts/helm-docs.sh +++ b/scripts/helm-docs.sh @@ -1,12 +1,16 @@ #!/bin/bash ## Reference: https://github.com/norwoodj/helm-docs -set -eux -CHART_DIR="$(cd "$(dirname "$0")/.." && pwd)" -echo "$CHART_DIR" +set -x +REPO_ROOT="${1:-$(cd "$(dirname "$0")/.." && pwd)}" +WORKDIR="${2}" + +echo "$REPO_ROOT" +echo "$WORKDIR" echo "Running Helm-Docs" docker run \ - -v "$CHART_DIR:/helm-docs" \ + -v "$REPO_ROOT:/helm-docs" \ + -w "/helm-docs/$WORKDIR" \ -u $(id -u) \ --rm \ jnorwood/helm-docs:v1.9.1