Use helm to index repo
This commit is contained in:
parent
81c0c105ff
commit
a0959ed344
3 changed files with 16 additions and 15 deletions
13
scripts/publish.sh
Executable file
13
scripts/publish.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue