improve tracking
This commit is contained in:
2
.github/workflows/docker-build-self.yml
vendored
2
.github/workflows/docker-build-self.yml
vendored
@@ -45,7 +45,7 @@ jobs:
|
||||
run: |
|
||||
docker run -d --name temp-$IMAGE_NAME -p $TEST_PORT:54321 $IMAGE_NAME:latest
|
||||
sleep 10 # Wait for the container to start
|
||||
if curl -f http://localhost:$TEST_PORT/health; then
|
||||
if curl -f --max-time 10 http://localhost:$TEST_PORT/health; then
|
||||
echo "Health check passed"
|
||||
docker stop temp-$IMAGE_NAME
|
||||
docker rm temp-$IMAGE_NAME
|
||||
|
||||
Reference in New Issue
Block a user