mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 06:14:14 +00:00
ci: Don't restart failed container during test
This commit is contained in:
parent
3c9df03584
commit
90183ae823
2 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue