Release/versao1 #18

Merged
ricardo merged 8 commits from Release/versao1 into main 2025-09-22 18:37:52 +00:00
2 changed files with 5 additions and 7 deletions
Showing only changes of commit f20f136350 - Show all commits

View File

@ -582,8 +582,8 @@ jobs:
ATTEMPTS=30
while [ $ATTEMPTS -gt 0 ]; do
REPLICAS=$(docker service ls --filter name=bcards-release_bcards-release --format '{{.Replicas}}')
if [ "$REPLICAS" = "2/2" ]; then
echo "✅ Serviço com $REPLICAS réplicas"
if [ "$REPLICAS" = "1/1" ]; then
echo "✅ Serviço com $REPLICAS réplica"
break
fi
echo "Atual: ${REPLICAS:-N/A}; aguardando..."
@ -591,8 +591,8 @@ jobs:
ATTEMPTS=$((ATTEMPTS-1))
done
if [ "$REPLICAS" != "2/2" ]; then
echo "❌ Serviço não atingiu 2/2 réplicas"
if [ "$REPLICAS" != "1/1" ]; then
echo "❌ Serviço não atingiu 1/1 réplica"
docker service ps bcards-release_bcards-release
exit 1
fi

View File

@ -6,9 +6,7 @@ services:
networks:
- bcards-net
deploy:
replicas: 2
placement:
max_replicas_per_node: 1
replicas: 1
update_config:
parallelism: 1
delay: 10s