fix: check PostgreSQL readiness in deploy CI

This commit is contained in:
nyan404 committed 2026-08-25 15:10:17 +03:00
1 parent ffee547b7d
commit 08ec58c7e9
4 files changed
+14 -1

No files matched your search

+1 -1
View File
@@ -97,7 +97,7 @@ deploy:
sed -E "s#image: reg.nyan404.ru/cwshed-clone/belki:[^[:space:]]+#image: $DOCKER_IMAGE_REPOSITORY:$CI_COMMIT_SHORT_SHA#g" deploy/k8s/production.yaml | kubectl apply -f -
- >
sed -E "s#image: reg.nyan404.ru/cwshed:[^[:space:]]+#image: $GATEWAY_IMAGE_REPOSITORY:$CI_COMMIT_SHORT_SHA#g" deploy/k8s/gateway.yaml | kubectl apply -f -
- kubectl -n "$KUBE_NAMESPACE" rollout status deployment/belki-postgres --timeout=180s
- kubectl -n "$KUBE_NAMESPACE" wait --for=condition=Ready pod -l app.kubernetes.io/name=belki-postgres --timeout=180s
- kubectl -n "$KUBE_NAMESPACE" rollout status deployment/belki-web --timeout=180s
- kubectl -n "$KUBE_NAMESPACE" rollout status deployment/belki-bot --timeout=180s
- kubectl -n "$KUBE_NAMESPACE" rollout status deployment/cwshed --timeout=180s