From 5456fd1e8b0b0c794e62189e8566ed39cf3df01b Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Wed, 11 Oct 2017 13:25:53 -0700 Subject: [PATCH] Fix chart tar command --- scripts/publish.rb | 14 -------------- scripts/publish.sh | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 scripts/publish.rb 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