Skip to content

Capistrano tasks to generate semantic version as a deploy git tag

License

Notifications You must be signed in to change notification settings

Abdulrazak-Alkl/capistrano-semver-git-tags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages