Commit df643ec3

mo khan <mo@mokhan.ca>
2013-06-06 03:37:49
git pull before deploying
1 parent 0b87aa5
Changed files (1)
lib
tasks
lib/tasks/ci.rake
@@ -4,6 +4,7 @@ namespace :ci do
   namespace :deploy do
     task :staging do
       now = Time.now
+      sh "git pull"
       sh "git tag -a 'staging-#{now.strftime('%Y-%m-%d')}-#{now.to_i}-jenkins-continuous-deployment' -m 'just push it'"
       sh "git push --tags"
       Rake::Task['deploy:staging'].invoke