Skip to content

Commit d03d688

Browse files
committed
[bindata] add retry to skopeo copy
In renovate in happened that there was some hickup in communication to the quay registry, but from checking there was no real issue. ~~~ skopeo copy docker://quay.io/openstack-k8s-operators/neutron-operator-bundle:61f1f61311e3bfa1c4fee2ceeda54e1891cc910a dir:tmp/bindata/tmp time=\"2025-02-26T10:25:07Z\" level=fatal msg=\"initializing source docker://quay.io/openstack-k8s-operators/neutron-operator-bundle:61f1f61311e3bfa1c4fee2ceeda54e1891cc910a: can't talk to a V1 container registry\"\nmake: *** [Makefile:158: bindata] Error 1\n" ~~~ This adds a retry with max 5/sleep 15 to retry the skopeo copy command. Signed-off-by: Martin Schuppert <[email protected]>
1 parent 818584d commit d03d688

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

hack/sync-bindata.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,13 @@ EOF_CAT
142142
}
143143

144144
for BUNDLE in $(hack/pin-bundle-images.sh | tr "," " "); do
145-
skopeo copy "docker://$BUNDLE" dir:${EXTRACT_DIR}/tmp;
145+
n=0
146+
until [ "$n" -ge 5 ]; do
147+
skopeo copy "docker://$BUNDLE" dir:${EXTRACT_DIR}/tmp && break
148+
echo "Command failed. retrying ... $n/5"
149+
n=$((n+1))
150+
sleep 15
151+
done
146152
extract_bundle "${EXTRACT_DIR}/tmp" "${OUT_DATA}/"
147153
done
148154

0 commit comments

Comments
 (0)