ci: Don't restart failed container during test

This commit is contained in:
Geoff Bourne 2020-07-11 14:26:47 -05:00
parent 3c9df03584
commit 90183ae823
2 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,7 @@ services:
image: itzg/mc-monitor:0.6.0
command: status --host mc --retry-interval 1s --retry-limit 120
mc:
restart: "no"
build:
context: ..
cache_from:

View file

@ -5,6 +5,9 @@ cd $(dirname $0)
failed=false
args="-f docker-compose.test.yml"
docker-compose $args run sut || failed=true
echo "
Result: failed=$failed"
$failed && docker-compose $args logs mc
docker-compose $args down -v