summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2013-06-05 21:32:06 -0600
committermo khan <mo@mokhan.ca>2013-06-05 21:32:06 -0600
commit04ead628361675445fffb1cc0fd60f873896b9c4 (patch)
tree2e89accf7baa3e5211dc95f3aeddecaf3c52269c /lib
parentbfd65760fcb5cee15a6281498fb50c1006ffbaed (diff)
create script to deploy to production
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/ci.rake11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake
index dba7de95..76188889 100644
--- a/lib/tasks/ci.rake
+++ b/lib/tasks/ci.rake
@@ -1,10 +1,13 @@
task :ci => ['db:migrate', 'db:test:prepare', 'spec', 'jasmine:ci']
namespace :ci do
- task :deploy_staging do
- now = Time.now
- sh "git tag -a 'staging-#{now.strftime('%Y-%m-%d')}-#{now.to_i}-jenkins-continuous-deployment' -m 'just push it'"
- Rake::Task['deploy:staging'].invoke
+ namespace :deploy do
+ task :staging do
+ now = Time.now
+ sh "git tag -a 'staging-#{now.strftime('%Y-%m-%d')}-#{now.to_i}-jenkins-continuous-deployment' -m 'just push it'"
+ Rake::Task['deploy:staging'].invoke
+ end
+ task :production => ['deploy:production']
end
end