Skip to content

Commit e836d0c

Browse files
committed
Check health too
1 parent 8ee41f5 commit e836d0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/check_deployment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
if $?.success?
1010
puts 2
1111
j = JSON.parse(docker_ps)
12-
unless j.any? { |c| c['ExitCode'] == 1 }
12+
unless j.any? { |c| c['ExitCode'] == 1 } || j.any? { |c| c['Health'] == 'unhealthy' }
1313
puts 'exit 0'
1414
exit 0
1515
end

0 commit comments

Comments
 (0)