Skip to content

Instantly share code, notes, and snippets.

@thekindofme
Last active October 6, 2015 04:26
Show Gist options
  • Save thekindofme/8590eb979e7b481e94bf to your computer and use it in GitHub Desktop.
Save thekindofme/8590eb979e7b481e94bf to your computer and use it in GitHub Desktop.
Production Release/Hotfix Steps for app and www
#
# Release
#
git checkout develop
git-smart-pull
git checkout master
git-smart-pull
git flow release start 2015.02.23.1
#
# bump version
# echo 2015.02.23.1 > version.rb for APP
# echo 2015.02.23.1 > VERSION for WWW
#
#commit stuff
#
git flow release finish 2015.02.23.1
git checkout develop
git push origin develop
git checkout master
git push origin master
git push --tags
git checkout develop
#
# Hotfix
#
git checkout develop
git-smart-pull
git checkout master
git-smart-pull
git flow hotfix start 2015.02.23.1
#
# bump version
# echo 2015.02.23.1 > version.rb for APP
# echo 2015.02.23.1 > VERSION for WWW
#
# CHEERY-PICK or COMMIT
#
git flow hotfix finish 2015.02.23.1
git checkout develop
git push origin develop
git checkout master
git push origin master
git push --tags
git checkout develop
#
# Ansible create and deploy
#
ansible-playbook --extra-vars '{"APP_ENV":"production","GIT_BRANCH":"2015.02.23.1"}' lp_webapp_create_ami.yml -vvvv && ansible-playbook --extra-vars '{"APP_ENV":"prodcution","GIT_BRANCH":"2015.02.23.1"}' lp_webapp_deploy_ami.yml -vvvv
@thekindofme
Copy link
Author

Thanks @stuintrepica ! I've updated the gist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment