Skip to content

Instantly share code, notes, and snippets.

@henrypoydar
Created May 15, 2014 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henrypoydar/9b85b06597847c9ac609 to your computer and use it in GitHub Desktop.
Save henrypoydar/9b85b06597847c9ac609 to your computer and use it in GitHub Desktop.
namespace :deploy do
desc "Tag a release and deploy the application to production"
task :production do
release_tag_name = "release-#{Time.now.utc.strftime('%Y%m%d.%H%M')}"
sh "git push origin integration"
sh "git checkout master"
sh "git merge integration"
sh "git tag #{release_tag_name}"
sh "git push origin master"
sh "git push origin #{release_tag_name}"
sh "git push heroku master"
sh "git checkout integration"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment