2018-11-23 12:54:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
echo "Installing curl"
|
|
|
|
apt update
|
|
|
|
apt install curl -y
|
|
|
|
|
|
|
|
echo "Installing helm"
|
|
|
|
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
|
|
|
|
helm init -c
|
|
|
|
|
|
|
|
echo "Packaging charts from source code"
|
|
|
|
mkdir -p temp
|
2018-11-23 14:37:39 +00:00
|
|
|
for d in chart/*
|
2018-11-23 12:54:57 +00:00
|
|
|
do
|
|
|
|
# shellcheck disable=SC2039
|
|
|
|
if [[ -d $d ]]
|
|
|
|
then
|
|
|
|
# Will generate a helm package per chart in a folder
|
|
|
|
echo "$d"
|
|
|
|
helm package "$d"
|
|
|
|
# shellcheck disable=SC2035
|
|
|
|
mv *.tgz temp/
|
|
|
|
fi
|
|
|
|
done
|