这是我的,deploy.rb
但这总是部署一个标签。如果我不指定标签,我想部署master。
set :branch, "master"
set :branch do
default_tag = `git tag`.split("\n").last
tag = Capistrano::CLI.ui.ask "Tag to deploy (make sure to push the tag first): [#{default_tag}] "
tag = default_tag if tag.empty?
tag
end