Remove dangling containers after failed execution
All checks were successful
Run unit tests / unit_tests (pull_request) Successful in 9m4s

This commit is contained in:
Manuel Bustillo 2024-08-09 20:15:41 +02:00
parent c2deefbfca
commit 56852a8109

View File

@ -35,3 +35,6 @@ jobs:
env:
RAILS_ENV: test
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