Cleanup leftover postgres containers
This commit is contained in:
8
.github/workflows/python-uv-ci.yml
vendored
8
.github/workflows/python-uv-ci.yml
vendored
@@ -127,6 +127,14 @@ jobs:
|
|||||||
if: ${{ inputs.typecheck_command != '' }}
|
if: ${{ inputs.typecheck_command != '' }}
|
||||||
run: ${{ inputs.typecheck_command }}
|
run: ${{ inputs.typecheck_command }}
|
||||||
|
|
||||||
|
- name: Cleanup existing database containers
|
||||||
|
if: ${{ inputs.enable_db }}
|
||||||
|
run: |
|
||||||
|
existing_ids="$(docker ps -aq --filter "name=^ci-postgres")"
|
||||||
|
if [ -n "$existing_ids" ]; then
|
||||||
|
docker rm -f $existing_ids >/dev/null 2>&1 || true
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Start database
|
- name: Start database
|
||||||
if: ${{ inputs.enable_db }}
|
if: ${{ inputs.enable_db }}
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user