ci/deploy: force rollout of web service via RELEASE_SHA + service update to pick new code
This commit is contained in:
parent
8b1715a3da
commit
27d78d6171
2 changed files with 8 additions and 1 deletions
7
.github/workflows/ci-cd-web-desktop.yml
vendored
7
.github/workflows/ci-cd-web-desktop.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue