ci/deploy: force rollout of web service via RELEASE_SHA + service update to pick new code

This commit is contained in:
Esdras Renan 2025-10-08 16:17:34 -03:00
parent 8b1715a3da
commit 27d78d6171
2 changed files with 8 additions and 1 deletions

View file

@ -73,7 +73,12 @@ jobs:
if: ${{ hashFiles(format('{0}/stack.yml', env.APP_DIR)) != '' }}
run: |
cd "$APP_DIR"
docker stack deploy --with-registry-auth -c stack.yml sistema
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)) != '' }}
run: |
docker service update --force sistema_web || true
convex_deploy:
name: Deploy Convex functions