Merge pull request #7124 from kleph/mina_setup_env

Use the same env vars for setup and deploy
This commit is contained in:
mfo 2022-04-08 10:50:31 +02:00 committed by GitHub
commit ab14acef6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,18 +26,18 @@ shared_dirs = [
'vendor/bundle'
]
set :domain, ENV.fetch('domain')
set :domain, ENV.fetch('DOMAINS')
set :deploy_to, deploy_to
# rubocop:disable DS/ApplicationName
set :repository, 'https://github.com/betagouv/demarches-simplifiees.fr.git'
# rubocop:enable DS/ApplicationName
set :branch, ENV.fetch('branch')
set :branch, ENV.fetch('BRANCH')
set :forward_agent, true
set :user, 'ds'
set :shared_dirs, shared_dirs
set :rbenv_path, "/home/ds/.rbenv/bin/rbenv"
puts "Deploy to #{ENV.fetch('domain')}, branch: #{ENV.fetch('branch')}"
puts "Deploy to #{ENV.fetch('DOMAINS')}, branch: #{ENV.fetch('BRANCH')}"
# This task is the environment that is loaded for most commands, such as
# `mina deploy` or `mina rake`.