Handle the old container removal better
All checks were successful
Publish Website / publish (push) Successful in 17s
All checks were successful
Publish Website / publish (push) Successful in 17s
This commit is contained in:
@@ -66,8 +66,9 @@ jobs:
|
||||
#shell: bash
|
||||
run: |
|
||||
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
|
||||
#shell: bash
|
||||
working-directory: website
|
||||
|
Reference in New Issue
Block a user