Deploy: use fetch

This commit is contained in:
simon lehericey 2018-10-24 11:40:08 +02:00
parent e63ba1b9cb
commit a1d813aff4
2 changed files with 5 additions and 10 deletions

View file

@ -10,8 +10,8 @@ def domains_from_env(env)
end
task :deploy do
domains = domains_from_env(ENV['STAGE'])
branch = ENV['BRANCH'] || 'dev'
domains = domains_from_env(ENV.fetch('STAGE'))
branch = ENV.fetch('BRANCH')
domains.each do |domain|
sh "mina deploy domain=#{domain} branch=#{branch} force_asset_precompile=true"