submodule

This commit is contained in:
Luna 2021-05-06 17:54:17 +00:00
parent 4a1320ec74
commit 80f8bcc7ec
Signed by: luna
GPG Key ID: 48ABA804580B9BA8
3 changed files with 13 additions and 1 deletions

View File

@ -5,7 +5,7 @@ set :application, "mint-lgbt"
set :repo_url, "https://fem.mint.lgbt/mint.lgbt/home.git"
# Default branch is :master
ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
# Default deploy_to directory is /var/www/my_app_name
set :deploy_to, "/opt/www/mint-lgbt"

View File

@ -0,0 +1,12 @@
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