Use helm to index repo

This commit is contained in:
Alexander Matyushentsev 2017-10-11 11:20:19 -07:00
parent 81c0c105ff
commit a0959ed344
3 changed files with 16 additions and 15 deletions

13
scripts/publish.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
SRCROOT="$(cd "$(dirname "$0")/.." && pwd)"
mkdir -p $SRCROOT/output
for dir in $SRCROOT/charts/*;
do
echo "Processing $dir"
version=$(cat $dir/Chart.yaml | grep version: | awk '{print $2}')
tar -cvzf $SRCROOT/output/$(basename $dir)-$version.tgz $dir -C $dir .
cd $SRCROOT/output && helm repo index .
done