Deploy: branch base on BRANCH var

This commit is contained in:
simon lehericey 2018-10-24 10:22:41 +02:00
parent 9ee1119656
commit 1433331fb5

View file

@ -8,7 +8,7 @@ task :deploy do
raise "STAGE #{STAGE} is unknown. It must be either dev or master"
end
branch = ENV['STAGE']
branch = ENV['BRANCH'] || 'dev'
domains.each do |domain|
sh "mina deploy domain=#{domain} branch=#{branch} force_asset_precompile=true"