Skip to content

Commit 6b2dc95

Browse files
committed
Add release info images into the mirrored registry
1 parent 5f3d81e commit 6b2dc95

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

scripts/mirror-images.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

test/bin/mirror_registry.sh

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)