Skip to content

Commit 3ce858a

Browse files
committed
Fix github actions
1 parent 2a85917 commit 3ce858a

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/github-actions-micronaut-webserver.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ jobs:
3535
container_id=$(docker run --rm -d -p8080:8080 webserver:distroless-java-base.jar)
3636
sleep 10
3737
docker ps
38+
sleep 2
39+
for i in {1..10}; do
40+
if curl -s "http://localhost:8080/" > /dev/null; then
41+
echo "Server is up!"
42+
break
43+
fi
44+
echo "Waiting for server..."
45+
sleep 2
46+
done
3847
curl "http://localhost:8080/"
3948
docker kill $container_id
4049
docker ps

0 commit comments

Comments
 (0)