我有一个任务来验证即将部署的构建的完整性。
我想停止/失败部署以防万一它坏了。
task :test_build do
if something
puts "Problem with build"
#prevent deploy to continue further
end
end
after('deploy:update_code', 'test_build')
Run Code Online (Sandbox Code Playgroud)
注:项目用途 railsless-deploy