News for hackers. Stuff that matters.
Re:Time to hand over the reins before Capistrano costs me my... by bradleyland on Monday October 07, 2013 @02:33PM (#6510234)
We do the inverse. We tag first, then instruct Capistrano to grab the latest release (with a prompt). We have a release plan though, where software goes through QA before it's tagged. Only software ready for production gets a tag. Everything up to that point is done on a release branch.

    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

There are no comments on this comment yet.