From d4616f757a5b5a11cfc695bbaed13c1fa68c67cb Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Wed, 8 Oct 2025 18:09:49 -0300 Subject: [PATCH] ci: always run stack deploy + service restarts (remove invalid hashFiles condition) --- .github/workflows/ci-cd-web-desktop.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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