Skip to content

Commit

Permalink
fix(cve-scan-patching): add buildkit cache prune after each image pat…
Browse files Browse the repository at this point in the history
…ching
  • Loading branch information
g-iannelli committed Sep 25, 2024
1 parent a5bbe04 commit 8437b12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CVEs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

KFD_VERSIONS := $(shell find . -type d -maxdepth 1 -mindepth 1 | cut -d/ -f2 | sort )

all: scan patch
all: scan-parallel patch

scan:
@for version in $(KFD_VERSIONS); do \
Expand Down
1 change: 1 addition & 0 deletions scripts/patch_images_with_copacetic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function patch_image() {

echo ">>>>>>>>>>>>>>>>>>> CLEANUP $image_to_patch <<<<<<<<<<<<<<<<<<<<<"
docker rmi -f "$image_to_patch"
buildctl --addr tcp://127.0.0.1:8888 prune
if [ "$secured_image" != "$image_to_patch" ]
then
echo ">>>>>>>>>>>>>>>>>>> CLEANUP $secured_image <<<<<<<<<<<<<<<<<<<<<"
Expand Down

0 comments on commit 8437b12

Please sign in to comment.