add a second check to check if service stable

This commit is contained in:
2025-02-01 20:32:07 +01:00
parent 3ece0ebbbe
commit e7f9836441

View File

@@ -33,6 +33,8 @@ jobs:
docker run --rm -d --name $CONTAINER_NAME -p $TEST_PORT:$TEST_PORT -e ICINGA2_API_USER_ROOT_PASS=$TMP_API_PASS $REGISTRY_HOST/$CONTAINER_TAG:$CONTAINER_VERSION
sleep $DEPLOY_TIME
curl -k -s -S -i -u root:$TMP_API_PASS "https://localhost:$TEST_PORT/v1"
sleep 5
curl -k -s -S -i -u root:$TMP_API_PASS "https://localhost:$TEST_PORT/v1"
env:
DEPLOY_TIME: 15
TEST_PORT: 5665