Skip to content

Instantly share code, notes, and snippets.

@ryanburnette ryanburnette/deploy.rb
Last active Dec 21, 2017

What would you like to do?
Capistrano Deployment By Semantic Version Tag In Git
# deploy.rb
set :branch, {
tags = `git tag`.split("\n")
vers = {}
tags.each do |t|
v = t.gsub('v','')
vers[v] = t
sorted_vers = vers.keys.sort { |x,y| <=> }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.