diff --git a/lib/tasks/ci.rake b/lib/tasks/ci.rake index 614ab15..75c1a54 100644 --- a/lib/tasks/ci.rake +++ b/lib/tasks/ci.rake @@ -34,6 +34,9 @@ namespace :ci do flow.push_to_chat(:content => "#{env} build FAILED!", :tags => [:master, :FAILED]) end namespace :deploy do + task :begin do + flow.push_to_chat(:content => "#{env} deploying...", :tags => [:master, :success]) + end task :success do flow.push_to_chat(:content => "#{env} deploy success.", :tags => [:master, :success]) end diff --git a/staging-update.sh b/staging-update.sh index 10ee272..fb081a8 100755 --- a/staging-update.sh +++ b/staging-update.sh @@ -1,4 +1,7 @@ #!/bin/sh + +bundle exec rake ci:staging:deploy:begin + git fetch origin git reset --hard origin/staging bundle