mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
13 lines
505 B
Bash
Executable File
13 lines
505 B
Bash
Executable File
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
|