Remove dangling containers after failed execution
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 9m4s
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 9m4s
This commit is contained in:
parent
c2deefbfca
commit
56852a8109
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@ -35,3 +35,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RAILS_ENV: test
|
RAILS_ENV: test
|
||||||
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
|
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
|
||||||
|
- name: Clean up containers generated by this flow
|
||||||
|
if: failure()
|
||||||
|
run: docker ps --filter network=$JOB_CONTAINER_NAME-$GITHUB_JOB-network --filter name=$JOB_CONTAINER_NAME-* --format "{{.ID}}" | xargs docker rm -f
|
||||||
|
Loading…
x
Reference in New Issue
Block a user