feat: add create.sh

This commit is contained in:
Chi-En Wu
2020-04-27 16:21:51 +08:00
parent 4248e9d373
commit 2b7cc4a22e
2 changed files with 17 additions and 0 deletions

View File

@ -25,4 +25,5 @@
starter/ starter/
.github/ .github/
gcloud_auth_key.json gcloud_auth_key.json
create.sh
README.md README.md

16
create.sh Executable file
View File

@ -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/<CHARTNAME>/$1/g"
helm dep build "$1"