mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-10 22:34:22 +00:00
ci: Only output server logs when failed
This commit is contained in:
parent
367c6cfd92
commit
3c9df03584
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@ cd $(dirname $0)
|
||||||
|
|
||||||
failed=false
|
failed=false
|
||||||
args="-f docker-compose.test.yml"
|
args="-f docker-compose.test.yml"
|
||||||
docker-compose $args run sut || failed=true; docker-compose $args logs mc
|
docker-compose $args run sut || failed=true
|
||||||
|
$failed && docker-compose $args logs mc
|
||||||
docker-compose $args down -v
|
docker-compose $args down -v
|
||||||
|
|
||||||
if $failed; then
|
if $failed; then
|
||||||
|
|
Loading…
Reference in a new issue