Skip to content

Commit daa6a6b

Browse files
committed
Remove dangling layers.
1 parent b57aa00 commit daa6a6b

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/docker-devito.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ jobs:
112112
build-args: base=devitocodes/${{ matrix.base }}
113113

114114
- name: Remove dangling layers
115-
if: ${{ !contains(matrix.runner, 'nvidiagpu') }}
116115
run: docker system prune -f
117116

118117
- name: Run tests

.github/workflows/pytest-gpu.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,10 @@ jobs:
124124
run: |
125125
docker run ${{ matrix.flags }} --env DEVITO_MPI=1 "${DOCKER_IMAGE}" \
126126
mpiexec -n 2 pytest ${{ matrix.test_examples }}
127+
128+
- name: Clean up test image
129+
if: always()
130+
run: |
131+
docker rmi -f "${DOCKER_IMAGE}" || true # drop the tag
132+
docker system prune -f # free dangling layers
133+

0 commit comments

Comments
 (0)