I used to do that, but we adopted a different workflow that made  
master our stable production branch.

We now have three primary branches, master, rc, and testing. Topic  
branches are rebased and merged into testing, and that's where all of  
the development happens. When testing is stable and potentially  
releasable it's merged into rc where it's qa'd, once it meets qa  
approval it's merged into master.  We use tags only to document when  
the merges were approved. We deploy based on the branch.

This has worked well and kept our continuous integration fairly simple.

On Aug 12, 2009, at 2:03 AM, "Ionut G. Stan" <[email protected]>  
wrote:

>
> 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