Add timeout control

This commit is contained in:
Victor Carlos Erenu
2026-07-01 02:13:46 +07:00
parent 55d9609b5e
commit c0d625bd6a
+2
View File
@@ -92,6 +92,7 @@ jobs:
- name: Check Wazuh indexer start
run: |
sleep 60
timeout 600 bash -c 'until curl -XGET "https://localhost:9200/_cluster/health" -u admin:SecretPassword -k -s | grep "green"; do sleep 5; done'
if [ $? -ne 0 ]; then
docker ps -a
@@ -237,6 +238,7 @@ jobs:
- name: Check Wazuh indexer start
run: |
sleep 120
timeout 600 bash -c 'until curl -XGET "https://localhost:9200/_cluster/health" -u admin:SecretPassword -k -s | grep -v "yellow"; do sleep 5; done'
if [ $? -ne 0 ]; then
docker ps -a