Created
May 15, 2014 20:07
-
-
Save henrypoydar/9b85b06597847c9ac609 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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