Skip to content

Instantly share code, notes, and snippets.

@brycemcd
Created August 27, 2012 15:03
Show Gist options
  • Save brycemcd/3489309 to your computer and use it in GitHub Desktop.
Save brycemcd/3489309 to your computer and use it in GitHub Desktop.
deploying tags
# Yesterday's deploy tag:
20120801
# See what's been merged today, what's about to deploy:
# https://github.com/TheClymb/theclymb/compare/20120801...HEAD
# Tag the current release for deploy:
git tag 20120802
git push origin 20120802
# OOPS! - gotta patch!
git branch -b 20120802_patches 20120802
commit
commit
commit
git push origin 20120802_patches
# ready to test on RC
git tag 20120802-A
# push to RC
bin/cap rc1 deploy:migrations BRANCH=20120802-A
#wahoo! everything works!
bin/cap production deploy:migrations BRANCH=20120802-A
# keep master current
git checkout master
git merge --no-ff 20120802_patches
git push origin master
# To hotfix something out on production, BUT new PRs have already been merged into master
git checkout 20120802_patches
commit -m "hotfixing something we missed"
git tag 20120802-HOTFIX#{n}
git push origin 20120802-HOTFIX1
bin/cap production deploy 20120802-HOTFIX1
git merge master 20120802-HOTFIX1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment