Handle the old container removal better
All checks were successful
Publish Website / publish (push) Successful in 17s

This commit is contained in:
Akshay
2025-07-23 14:55:01 -04:00
parent eb403face7
commit d91ba6c1e0

View File

@@ -66,8 +66,9 @@ jobs:
#shell: bash #shell: bash
run: | run: |
cd ./website cd ./website
docker compose down --remove-orphans docker compose down --remove-orphans || true
# Add this line to forcefully remove the container if it still exists
docker rm -f website || true # `|| true` to prevent step failure if container doesn't exist
- name: Rebuild & deploy - name: Rebuild & deploy
#shell: bash #shell: bash
working-directory: website working-directory: website