-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mina don't support deployment by tag #296
Comments
Try using |
We have the same issue with our app. We use tags to avoid creating Here is the code we used: namespace :git do
desc "Clones the Git repository to the release path."
task :clone do
queue %{
if [ ! -d "#{deploy_to}/scm/.git" ]; then
echo "-----> Cloning the Git repository"
#{echo_cmd %[git clone "#{repository}" "#{deploy_to}/scm"]}
else
echo "-----> Fetching new git commits"
#{echo_cmd %[cd "#{deploy_to}/scm" && git pull --all --prune --tags]}
fi
}
in_directory "#{deploy_to}/scm" do
queue %{ echo "-----> Using this git commit :" && echo }
queue %{ #{echo_cmd %[git show -s --oneline #{branch}]} && echo }
end
queue %{ echo "-----> Using git branch '#{branch}'" }
queue %{ #{echo_cmd %[git archive --format=tar "--remote=#{deploy_to}/scm" #{branch} | tar xf -]} }
end
end By the way, this doesn't work with a bare repository (we tried but had way too many issues). The |
@13k answered the question correctly. closing |
When we prepare to release a version of our product, generally, we will create a tag on the release branch and want to deploy according to the tag. But mina does not support tag deployment something like:
Could mina support this?
The text was updated successfully, but these errors were encountered: