Fix Trivy diskspace issue by cleaning docker build cache (#35059)

<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #35057

Ran successfully. Now fails with CVEs and not disk space issues:
https://github.com/fleetdm/fleet/actions/runs/18977076930/job/54199504988
This commit is contained in:
Victor Lyuboslavsky
2025-10-31 16:23:49 -05:00
committed by GitHub
parent debb2f72f2
commit 5e8479ce32
3 changed files with 15 additions and 0 deletions
@@ -41,6 +41,11 @@ jobs:
- name: Build fleetdm/bomutils
run: make bomutils-docker
- name: Clean up Docker build cache
run: |
docker system prune -af
df -h
- name: List VEX files
id: generate_vex_files
run: |
@@ -41,6 +41,11 @@ jobs:
- name: Build fleetdm/fleetctl
run: make fleetctl-docker
- name: Clean up Docker build cache
run: |
docker system prune -af
df -h
- name: List VEX files
id: generate_vex_files
run: |
@@ -41,6 +41,11 @@ jobs:
- name: Build fleetdm/wix
run: make wix-docker
- name: Clean up Docker build cache
run: |
docker system prune -af
df -h
- name: List VEX files
id: generate_vex_files
run: |