We have a very simple branching strategy:
- develop -> Development branch
- staging -> Staging Server Deploy Branch
- master -> Productio Branch
Our production deploy workflow is develop -> staging -> master. We always deploy first to staging, we test for some time, and then we deploy to production.
Right now we're working in a new feature that I would like to test. I don't want to put it in staging because, since is experimental, I would not like to lock a production deploy until the feature is finished.
Is there a way to say to capistrano the branch I want for one particular deploy, so I could put this experimental code in staging to test it?
OBS: The reason I need to put in staging is that this piece of code depends on a lot of external resources that are already configured in staging and would be difficult to replicate locally.