
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
capistrano-gitflow_version
Advanced tools
= gitflow_version: a Capistrano recipe for git deployment using tags in a multistage environment using MAJOR.MINOR.REVISION.BUILD
The best thing about this recipe is that there is almost nothing to learn -- your cap deploy process barely changes. Gitflow simply adds some tagging/logging/workflow magic to the multistage recipe.
# BEFORE
$ cap deploy # 'deploy' goes to staging
$ cap production deploy # 'deploy' goes to production
# AFTER
$ cap deploy
# 'deploy' goes to staging; tagged test-MAJOR.MINOR.REVISION.BUILD
$ cap production deploy
# deploys latest staging tag, or if last tag is a production tag then that, to production
# for specifying the tag by hand add `-s tag=MAJOR.MINOR.REVISION.BUILD`
# tag 'test-MAJOR.MINOR.REVISION.BUILD' goes to production
# tag 'vMAJOR.MINOR.REVISION.BUILD' created; points to test-MAJOR.MINOR.REVISION.BUILD
# BONUS
cap gitflow_version:commit_log
# displays a commit log pushed to staging
# ... alternatively, if you're using GitHub, will open a page using branch compare
cap production gitflow_version:log_log
# displays a commit log of what will be pushed to production
== INSTALLATION
First, install the gem:
gem install capistrano-gitflow_version
Then update config/deploy.rb
require 'capistrano/gitflow_version'
== DETAILS
After experimenting with several workflows for deployment in git, I've finally found one I really like.
=== PUSH TO STAGING
Whenever you want to push the currently checked-out code to staging, just do:
cap staging deploy
gitflow will automatically:
=== PUSH TO PRODUCTION:
Whenever you want to push code to production, you must specify the staging tag you wish to promote to production:
cap production deploy -s tag=test-0.8.4.3
gitflow will automatically:
=== NOTES:
== CREDIT
Originally forked from Alan Pinstein's git_deployment repo. Gemified and hacked by Josh Nichols. There wasn't really a license originally, so...
Forked from Josh Nichols's capistrano-gitflow repo. Hacked by Alice Brown. Put under the MIT License. See the LICENSE file.
FAQs
Unknown package
We found that capistrano-gitflow_version demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.