diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index ecbe4f9..36f07e4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -69,7 +69,7 @@ jobs: run: | sleep 10 for i in {1..5}; do - if curl -f http://localhost:3001/health; then + if bun -e "fetch('http://localhost:3001/health').then(r=>r.ok?process.exit(0):process.exit(1)).catch(()=>process.exit(1))"; then echo "Test environment is healthy!" exit 0 fi @@ -107,7 +107,7 @@ jobs: run: | sleep 15 for i in {1..5}; do - if curl -f http://localhost:3000/health; then + if bun -e "fetch('http://localhost:3000/health').then(r=>r.ok?process.exit(0):process.exit(1)).catch(()=>process.exit(1))"; then echo "Production deployment successful!" exit 0 fi