This project is deprecated. The functionality has been ported to the bp
utility CLI.
Benchprep Tagster is a small set of commands to identify, version, created and push git tags for deployments. It is easy to integrate into any of your deployment systems (vlad, cap etc)
- Include gem in your gemfile
- Run
bundle exec tag
to create and push minor(default) tag - Profit!
If you want to deploy major you can use bundle exec tag --major
.
You can append --dry-run
to the end of your command to see what tag would have been created
without pushing it to the remote and creating it locally
- Change directory (
cd
) to the root directory of the repository for which you'd like to create a deployment branch - Execute
prepare
using Bundler- Example:
bundle exec prepare
- This will create and push a branch using the agreed upon branch naming convention (
deploy-YYYYDDMM
) whereYYYYDDMM
refers to the deployment date, not the date on which the branch is created. - NOTE: If no script parameters are specified, the script assumes the deployment date will be the one week from the day on which the branch is created. For example, if the branch is created on Thursday, August 22, 2019, a branch named
deploy-20190829
will be created.
- Example:
- You can optionally pass a date parameter. This date value should represent the anticpated deployment date. The date should be formatted as follows:
YYYYMMDD
. - Example:
bundle exec prepare 20180411
- The result of this example would be a new branch named
deploy-20180411
- The result of this example would be a new branch named