fixed for only latest usages to deploy.

This commit is contained in:
ruberoid 2025-10-17 11:04:58 +04:00
parent 718a4ff1c9
commit af5d46e4e8

View File

@ -74,11 +74,18 @@ rm "$TEMP_DEPLOYMENT"
echo "✅ Manifests applied"
echo ""
echo "⏳ Waiting for rollouts to complete..."
# Force restart deployments to pull latest images
echo "🔄 Restarting deployments to pull new images..."
DEPLOYMENTS=("telegram-listener" "text-matcher" "users" "telegram-client")
for deployment in "${DEPLOYMENTS[@]}"; do
kubectl rollout restart deployment/"$deployment" -n "$NAMESPACE"
echo " ↻ Restarted $deployment"
done
echo ""
# Wait for each deployment to roll out
DEPLOYMENTS=("telegram-listener" "text-matcher" "users" "telegram-client")
echo "⏳ Waiting for rollouts to complete..."
echo ""
TIMEOUT="300s"
for deployment in "${DEPLOYMENTS[@]}"; do