up timeout

This commit is contained in:
Valentin Afanasev
2025-08-05 03:27:29 +03:00
parent 6e7d0987c3
commit b395df951c

View File

@ -9,7 +9,7 @@ runs:
- run: | - run: |
curl -s https://gitea.vecus.ru/ci/postgres-actions/raw/branch/master/.gitea/actions/create/postgres-template.yaml | envsubst | werf kubectl apply -f - curl -s https://gitea.vecus.ru/ci/postgres-actions/raw/branch/master/.gitea/actions/create/postgres-template.yaml | envsubst | werf kubectl apply -f -
echo "Waiting for pod to be ready..." echo "Waiting for pod to be ready..."
timeout=60 timeout=600
while ! werf kubectl get pod ${POD_NAME} -o jsonpath='{.status.containerStatuses[0].ready}' 2>/dev/null | grep -q true; do while ! werf kubectl get pod ${POD_NAME} -o jsonpath='{.status.containerStatuses[0].ready}' 2>/dev/null | grep -q true; do
echo "Still not ready..." echo "Still not ready..."
sleep 2 sleep 2