On 8/11/2009 04:19, Donovan Bray wrote:
> Have you tried setting :branch to your tag and verified it doesn't work?
>    
You are right. It works by simply setting :branch to a valid tag name. 
My problem was that I misinterpreted the meaning of the --all argument 
of git push. I thought it was  pushing tags too, which isn't true. I had 
to explicitly execute "git push --tags" to achieve that. So Capistrano 
couldn't deploy the tag because it was not pushed to the upstream 
repository. In the end what I did in my Capfile was:

set :branch do
   Capistrano::CLI.ui.ask "Enter the name of the Git tag you want to 
deploy: "
end

And it works wonders.

Now, if time permits I'd like to somehow automate this, that is to 
output a numbered list of tags so that I can simply enter that number 
instead of the full tag name, and if nothing is entered to default to 
the latest created tag. If any of you has some advise on how to approach 
this would be great. Rolling back to a specified tag would also be 
great. I'll see what I can do with my limited Ruby abilities.

Thank you all for your feedback.

-- 
Ionut G. Stan
I'm under construction  |  http://blog.igstan.ro/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to