fix(ci): clean up leftover mongo-ci container before starting
Previous run's container persisted across CI runs (runner shares the host Docker daemon), so 'docker run --name mongo-ci' hit a name conflict. 'docker rm -f mongo-ci || true' at the start of the step makes it idempotent.
This commit is contained in:
parent
386cb7e4b2
commit
43eda6db04
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ jobs:
|
|||
- run: npx playwright install --with-deps chromium
|
||||
- name: Start MongoDB
|
||||
run: |
|
||||
docker rm -f mongo-ci 2>/dev/null || true
|
||||
docker run -d --name mongo-ci --network host mongo:7
|
||||
docker ps
|
||||
- name: Wait for MongoDB
|
||||
|
|
@ -102,6 +103,7 @@ jobs:
|
|||
- run: npx playwright install --with-deps chromium
|
||||
- name: Start MongoDB
|
||||
run: |
|
||||
docker rm -f mongo-ci 2>/dev/null || true
|
||||
docker run -d --name mongo-ci --network host mongo:7
|
||||
docker ps
|
||||
- name: Wait for MongoDB
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue