ci(disk usage): disk related fixes and improvements (#1524)

ci(workflow): show disk usage and free up disk space used by unneeded tooling
ci(tests): routes tests: do not copy large images if they are not used later
ci(trivy): update a test: download trivy.db to a temporary folder

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
This commit is contained in:
Andrei Aaron
2023-06-16 01:07:28 +03:00
committed by GitHub
parent 988ca427b5
commit f9f9422d13
4 changed files with 52 additions and 7 deletions
+5 -1
View File
@@ -43,7 +43,11 @@ func TestTrivyDBGenerator(t *testing.T) {
},
}
storeController := storage.StoreController{
DefaultStore: mocks.MockedImageStore{},
DefaultStore: mocks.MockedImageStore{
RootDirFn: func() string {
return t.TempDir()
},
},
}
cveInfo := cveinfo.NewCVEInfo(storeController, repoDB, "ghcr.io/project-zot/trivy-db", "", logger)