diff --git a/.github/workflows/ci-cd-web-desktop.yml b/.github/workflows/ci-cd-web-desktop.yml index 91928ce..420e356 100644 --- a/.github/workflows/ci-cd-web-desktop.yml +++ b/.github/workflows/ci-cd-web-desktop.yml @@ -69,19 +69,16 @@ jobs: pnpm prisma:generate pnpm build - - name: Optional Swarm deploy (stack.yml) - if: ${{ hashFiles(format('{0}/stack.yml', env.APP_DIR)) != '' }} + - name: Swarm deploy (stack.yml) run: | cd "$APP_DIR" RELEASE_SHA=${{ github.sha }} docker stack deploy --with-registry-auth -c stack.yml sistema - - name: Ensure web service restarts with new code - if: ${{ hashFiles(format('{0}/stack.yml', env.APP_DIR)) != '' }} + - name: Restart web service with new code run: | docker service update --force sistema_web || true - - name: (Optional) Restart Convex backend service - if: ${{ hashFiles(format('{0}/stack.yml', env.APP_DIR)) != '' }} + - name: Restart Convex backend service (optional) run: | docker service update --force sistema_convex_backend || true