Skip to content

Commit

Permalink
fix versioning task
Browse files Browse the repository at this point in the history
  • Loading branch information
wr0ngway committed Jun 22, 2021
1 parent b1b5196 commit 3247e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ file "#{HELMV2_DIR}/#{APP[:name]}/Chart.yaml" => [HELMV2_DIR] do
cp_r "#{ROOT_DIR}/helm/helmv2/.", "#{HELMV2_DIR}/#{APP[:name]}/", preserve: true
chart = File.read("#{HELMV2_DIR}/#{APP[:name]}/Chart.yaml")
chart = chart.gsub(/apiVersion: v2/, "apiVersion: v1")
chart = chart.gsub(/version: ([0-9.]*)/, "version: \1-helmv2")
chart = chart.gsub(/version: ([0-9.]*)/, 'version: \1-helmv2')
File.write("#{HELMV2_DIR}/#{APP[:name]}/Chart.yaml", chart)
end

Expand Down

0 comments on commit 3247e08

Please sign in to comment.