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

View File

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