Remove dangling containers after failed execution #28

Merged
bustikiller merged 1 commits from remove-dangling-containers into main 2024-08-09 18:25:11 +00:00

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