No commit activity in last 3 years
No release in over 3 years
Capistrano tasks to generate semantic version as a deploy git tag
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 1.0.0
 Project Readme

Capistrano Semantic Version Git Tags

A Capistrano tasks for generating a semantic version Git tag at each deployment.

Prerequisite

  • Capistrano 3
  • Git 2.1+

Usage

capistrano-semver-git-tags is available on rubygems.org. In keeping with the pattern used by Capistrano itself and other plugins, add it to the development group of your Gemfile with require: false:

# Gemfile
group :development do
  gem 'capistrano-semver-git-tags', '~> 0.1.0', require: false
end

Then require capistrano/semver-tag in your Capfile

# Capfile
require 'capistrano/semver-tag'

This will allow you to use one of three tasks:

For bug fixes

bundle exec cap production deploy:patch

For new features

bundle exec cap production deploy:minor

For major changes that break backward compatibility

bundle exec cap production deploy:major