File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ function skopeo_retry() {
2222 for attempt in $( seq 3) ; do
2323 if ! skopeo " $@ " ; then
2424 echo " WARNING: Failed to run skopeo, retry #${attempt} " >&2
25+ echo " WARNING: skopeo $@ " >&2
2526 else
2627 return 0
2728 fi
Original file line number Diff line number Diff line change @@ -335,7 +335,23 @@ mirror_images() {
335335 echo " ${src_img} " >> " ${ffile} "
336336 done
337337
338- # Add test assets images.
338+ # Add release info images
339+ find ${SCRIPTDIR} /../../assets/ -name " release-*$( uname -m) .json" | while read -r json; do
340+ for img in $( jq -r ' .images[]' " ${json} " ) ; do
341+ [ -z " ${img} " ] && continue
342+ # Skip OpenDataHub, llm-d and Red Hat AI images because they are too large to mirror
343+ [[ " ${img} " =~ " /opendatahub/" ]] && continue
344+ [[ " ${img} " =~ " /llm-d/" ]] && continue
345+ [[ " ${img} " =~ " /rhaiis/" ]] && continue
346+ # Skip cert-manager images because of failure to mirror some images
347+ # due to incompatibility with OCI image layout
348+ [[ " ${img} " =~ " /cert-manager/" ]] && continue
349+
350+ echo " ${img} " >> " ${ffile} "
351+ done
352+ done
353+
354+ # Add test assets images
339355 find " ${SCRIPTDIR} /../assets/" -type f -exec grep -hPo " (?<=image: ).*\..*" {} \; | while read -r img; do
340356 echo " ${img} " >> " ${ffile} "
341357 done
You can’t perform that action at this time.
0 commit comments