Skip to content

Commit

Permalink
fix rakefile var fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
wr0ngway committed Oct 23, 2023
1 parent 410d1a7 commit cad3e11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_var(name, env_name: name.to_s.upcase, yml_name: name.to_s.downcase.to_sy
value ||= APP[yml_name]
value ||= default

if value.nil? && $stdin.tty? && prompt
if (prompt || value.nil?) && $stdin.tty?
print "Enter '#{name}': "
value = $stdin.gets
end
Expand Down Expand Up @@ -108,7 +108,7 @@ task :build_release => [:client] do
end

task :docker_push do
tags = get_var(:tags)
tags = get_var(:tags, default: "latest #{APP[:version]}")
tags = tags.split
tags.each do |tag|
puts "Pushing version '#{tag}' to docker hub"
Expand Down

0 comments on commit cad3e11

Please sign in to comment.