Skip to content

Commit

Permalink
Pruning images in all GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-souza committed Dec 4, 2024
1 parent dcb17bc commit b9a70ae
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/create-release-n-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,5 @@ jobs:
run: |
make clean
find /home/runner/runners/ -type f -name "*.log" -exec sh -c 'echo {}; >"{}"' \; || true
docker image prune -a -f
1 change: 1 addition & 0 deletions .github/workflows/run-tests-in-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ jobs:
run: |
make clean
find /home/runner/runners/ -type f -name "*.log" -exec sh -c 'echo {}; >"{}"' \; || true
docker image prune -a -f
1 change: 1 addition & 0 deletions .github/workflows/run-tests-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ jobs:
run: |
make clean
find /home/runner/runners/ -type f -name "*.log" -exec sh -c 'echo {}; >"{}"' \; || true
docker image prune -a -f
1 change: 1 addition & 0 deletions .github/workflows/run-tests-py11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ jobs:
run: |
make clean
find /home/runner/runners/ -type f -name "*.log" -exec sh -c 'echo {}; >"{}"' \; || true
docker image prune -a -f
1 change: 1 addition & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ jobs:
run: |
make clean
find /home/runner/runners/ -type f -name "*.log" -exec sh -c 'echo {}; >"{}"' \; || true
docker image prune -a -f
- name: List large files
run: find . -type f -exec du -h {} + | sort -h
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ reformat:

# Remove cache directories and Sphinx build output
clean:
rm -rf .ruff_cache
rm -rf .pytest_cache
rm -rf mnist_data
rm -rf tensorboard_events
rm -f docs_dump_tasks_*
rm -f dump_test.json
rm -rf .ruff_cache || true
rm -rf .pytest_cache || true
rm -rf mnist_data || true
rm -rf tensorboard_events || true
rm -f docs_dump_tasks_* || true
rm -f dump_test.json || true
find . -type f -name "*.log" -exec rm -f {} \; || true
find . -type f -name "*.pth" -exec rm -f {} \; || true
find . -type f -name "mlflow.db" -exec rm -f {} \; || true
Expand Down

0 comments on commit b9a70ae

Please sign in to comment.