Fix ci healthcheck

This commit is contained in:
Jamie Curnow
2021-07-15 17:05:52 +10:00
parent 17a5454b7a
commit b616988f7e
6 changed files with 33 additions and 26 deletions

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -euf -o pipefail
HEALTHY="$(curl --silent "http://127.0.0.1:3000/api" | jq --raw-output '.result.healthy')"
echo "Healthy: ${HEALTHY}"
[ "$HEALTHY" = 'true' ] || exit 1