diff --git a/.helmignore b/.helmignore index b6679a4..6156b21 100644 --- a/.helmignore +++ b/.helmignore @@ -25,4 +25,5 @@ starter/ .github/ gcloud_auth_key.json +create.sh README.md diff --git a/create.sh b/create.sh new file mode 100755 index 0000000..df28493 --- /dev/null +++ b/create.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +set -exu + +if [[ $# -eq 0 ]] +then + echo "No argument supplied" + exit 1 +fi + +mkdir "$1" +curl --proto '=https' --tlsv1.2 -sSf https://codeload.github.com/hahow/common-chart/tar.gz/master | \ + tar -xz -C "$1" --strip=2 common-chart-master/starter +find "$1" -type f | xargs sed -i "" "s//$1/g" + +helm dep build "$1"