File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,12 @@ rm -rf image-scan-output
2121mkdir -p image-scan-output
2222
2323# Get built container images
24- docker image ls --filter " reference=ark.stackhpc.com/stackhpc-dev/*:$2 *" > $1 -scanned-container-images.txt
24+ images=$( docker image ls \
25+ --filter " reference=ark.stackhpc.com/stackhpc-dev/*:$2 *" \
26+ --format " {{.Repository}}:{{.Tag}}" )
2527
26- # Make a file of imagename:tag
27- images= $( grep --invert-match --no-filename ^REPOSITORY $1 -scanned-container-images.txt | sed ' s/ \+/:/g ' | cut -f 1,2 -d: )
28+ # Save list of images to file
29+ echo " $images " > " $1 -scanned-container-images.txt"
2830
2931# Ensure output files exist
3032touch image-scan-output/clean-images.txt image-scan-output/dirty-images.txt image-scan-output/critical-images.txt
You can’t perform that action at this time.
0 commit comments