diff --git a/scripts/publish.rb b/scripts/publish.rb deleted file mode 100644 index a00488f4..00000000 --- a/scripts/publish.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'yaml' -require 'pathname' - -root_dir = Pathname.new("#{File.dirname(__FILE__)}/..").cleanpath - -`mkdir -p #{root_dir}/output` - -list = Dir.glob("#{root_dir}/charts/**/*Chart.yaml") - -list.each do |filename| - chart_name = File.basename(File.dirname(filename)) - `tar -cvzf #{root_dir}/output/#{chart_name}-#{version_info['version']}.tgz #{File.dirname(filename)} -C #{File.dirname(filename)} .` - `helm repo index #{root_dir}/output` -end diff --git a/scripts/publish.sh b/scripts/publish.sh index 520d78b9..858c2455 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -8,6 +8,6 @@ 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 . + tar -cvzf $SRCROOT/output/$(basename $dir)-$version.tgz -C $dir . cd $SRCROOT/output && helm repo index . done