19 lines
424 B
Bash
Executable File
19 lines
424 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
full_path=${1}
|
|
deployment=${2:-dev}
|
|
app=$(basename $full_path)
|
|
location=$(dirname $full_path)
|
|
tmp_path=$(realpath ".tmp/$location/$deployment-$app.yaml")
|
|
echo "writing $location/$app to $tmp_path"
|
|
|
|
mkdir -p $(dirname $tmp_path)
|
|
|
|
pushd $full_path
|
|
helm dependency update
|
|
helm template $app . --namespace $app \
|
|
--debug \
|
|
--values values.yaml \
|
|
--values values-$deployment.yaml \
|
|
> $tmp_path |