mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
fix: renovate token (#7)
This commit is contained in:
12
charts/apps/install.sh
Executable file
12
charts/apps/install.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
set -euo pipefail
|
||||
|
||||
find . -name "values.yaml" -type f -print0 | while IFS= read -r -d '' values_file; do
|
||||
location=$(dirname "$values_file")
|
||||
name=$(basename "$location")
|
||||
name=$(echo "$name" | tr '[:upper:]' '[:lower:]' | tr -s '[:punct:][:space:]' '-' | sed -e 's/^-*//' -e 's/-*$//')
|
||||
|
||||
echo "✅ Chart found in: $location"
|
||||
echo " - Generated release name: $name"
|
||||
HELM_COMMAND="helm install --namespace prod \"$name\" \"$location\""
|
||||
helm upgrade -i --namespace prod "$name" "$location"
|
||||
done
|
||||
Reference in New Issue
Block a user