mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
ci: Only output server logs when failed
This commit is contained in:
parent
367c6cfd92
commit
3c9df03584
@ -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 New Issue
Block a user