feat: add create.sh
This commit is contained in:
@ -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
16
create.sh
Executable 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"
|
Reference in New Issue
Block a user