Skip to content

Commit

Permalink
Add step to clean the unused volumes, images, containers in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
elenamsd committed Aug 22, 2024
1 parent c99e224 commit 671421b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-test-webapp-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
sudo du -h --max-depth=1 /usr/local
sudo du -h --max-depth=1 /var/lib
- name: Clean docker
run: |
docker system prune -a --volumes
- name: Build & Push
uses: docker/build-push-action@v4
id: built-image
Expand All @@ -55,6 +59,7 @@ jobs:
sudo du -h --max-depth=1 /usr/share
sudo du -h --max-depth=1 /usr/local
sudo du -h --max-depth=1 /var/lib
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
Expand Down

0 comments on commit 671421b

Please sign in to comment.