diff --git a/.semaphore/tests.yml b/.semaphore/tests.yml index 7dc45e7..b21b029 100644 --- a/.semaphore/tests.yml +++ b/.semaphore/tests.yml @@ -15,7 +15,7 @@ blocks: - artifact pull workflow postal-alpine-container.tar - docker load -i postal-alpine-container.tar - docker-compose up -d - - 'for i in {1..20}; do [ $(docker inspect postal | jq ''.[].State.Health.Status'') == "healthy" ] && break || sleep 15; done' + - for i in {1..20}; do if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; fi; sleep 15; done; - artifact yank workflow postal-alpine-container.tar - name: 'Ubuntu Test' commands: @@ -24,5 +24,5 @@ blocks: - artifact pull workflow postal-ubuntu-container.tar - docker load -i postal-ubuntu-container.tar - docker-compose up -d - - 'for i in {1..20}; do [ $(docker inspect postal | jq ''.[].State.Health.Status'') == "healthy" ] && break || sleep 15; done' + - for i in {1..20}; do if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; fi; sleep 15; done; - artifact yank workflow postal-ubuntu-container.tar