For capistrano 3 check https://github.com/ianheggie/capistrano-tagging3
For capistrano > 2 check https://github.com/dimko/capistrano-tagging
Automagically tag your current deployed release with capistrano
Install:
gem install capistrano-git-tags
usage: put this in the top in your deploy.rb:
require 'capistrano/git/tags'
- specify the formatting of the tag