From 40b192877f7b83f4ab35dcef6d22f23db57713a5 Mon Sep 17 00:00:00 2001 From: iloveyatoo Date: Fri, 17 Apr 2020 04:56:50 +0100 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2a06467..4871d64 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,8 +33,7 @@ test-docker-ubuntu: - cd ubuntu - docker load -i postal-ubuntu-container.tar - docker-compose up -d - - sleep 300 - - docker inspect postal | jq '.[].State.Health.Status' + - for i in {1..10}; do [ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ] && break || sleep 30; done after_script: - cd ubuntu - docker-compose rm -sfv