home-old/lib/capistrano/tasks/git.rake

12 lines
315 B
Ruby
Raw Normal View History

2021-05-06 17:54:17 +00:00
namespace :git do
desc 'Copy repo to releases'
task create_release: :'git:update' do
on roles(:all) do
with fetch(:git_environmental_variables) do
within repo_path do
execute :git, :clone, '-b', fetch(:branch), '--recursive', '.', release_path
end
end
end
end
end