fix: health check uses node fetch instead of wget
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -43,7 +43,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Waiting for container to start..."
|
echo "Waiting for container to start..."
|
||||||
for i in $(seq 1 15); do
|
for i in $(seq 1 15); do
|
||||||
if docker exec oma-memorial wget -q --spider http://localhost:3000 2>/dev/null; then
|
if docker exec oma-memorial node -e "fetch('http://localhost:3000/api/candles').then(r=>{process.exit(r.ok?0:1)}).catch(()=>process.exit(1))" 2>/dev/null; then
|
||||||
echo "Container is healthy!"
|
echo "Container is healthy!"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user