diff --git a/.semaphore/tests.yml b/.semaphore/tests.yml index 578e4c0..36bc0c0 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 if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; else sleep 15; fi; done; + - for i in {1..20}; do if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; elif [[ $i -eq 20 ]]; then exit 1; else sleep 15; fi; 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 if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; else sleep 15; fi; done; + - for i in {1..20}; do if [[ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ]]; then break; elif [[ $i -eq 20 ]]; then exit 1; else sleep 15; fi; done; - artifact yank workflow postal-ubuntu-container.tar