Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions do
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,18 @@ unit-tests() {
# shellcheck disable=SC2034
help_helm_docs="Run helm-docs"
helm-docs() {
if ! [ -x "$(command -v helm-docs)" ]; then
docker run --rm --volume "$(pwd):/helm-docs" -u $(id -u) jnorwood/helm-docs:latest
else
helm-docs
fi
case "$(uname -s)" in
Linux*) ./tooling/helm-docs-linux-x86;;
Darwin*) ./tooling/helm-docs-darwin-arm64;;
esac

while getopts 'a' OPTION; do
case $OPTION in
a)
git add README.md
;;
esac
done
}

# This variable is used, but shellcheck can't tell.
Expand Down
3 changes: 3 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
"extends": [
"config:recommended"
]
"commands" : [
"./do helm-docs -a"
]
}
Binary file added tooling/helm-docs-darwin-arm64
Binary file not shown.
Binary file added tooling/helm-docs-linux-x86
Binary file not shown.