File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
1
3
# Copyright 2025 The Kubernetes Authors.
2
4
#
3
5
# Licensed under the Apache License, Version 2.0 (the 'License');
@@ -68,18 +70,18 @@ imageSuffixes=("a1compat fips-windows-amd64-ltsc2022 fips-windows-amd64-ltsc2019
68
70
loudecho " Ensuring all images are present"
69
71
70
72
for suffix in ${imageSuffixes[@]} ; do
71
- if [ ! " $( crane digest " ${IMAGE} " :" ${TAG} " -" ${suffix} " ) " ]; then
73
+ if [ ! " $( docker manifest inspect " ${IMAGE} " :" ${TAG} " -" ${suffix} " ) " ]; then
72
74
loudecho " $suffix image not found"
73
75
exit 1
74
76
fi
75
77
done
76
78
77
79
loudecho " Ensuring image indexes have all images"
78
- if [ ! " $( crane manifest ${IMAGE} :${TAG} | jq " .manifests. [3].platform" ) " ]; then
80
+ if [ ! " $( docker manifest inspect ${IMAGE} :${TAG} | jq " .manifests[3].platform" ) " ]; then
79
81
loudecho " Error index image is missing images"
80
82
exit 1
81
83
fi
82
- if [ ! " $( crane manifest ${IMAGE} :${TAG} -fips | jq " .manifests. [3].platform" ) " ]; then
84
+ if [ ! " $( docker manifest inspect ${IMAGE} :${TAG} -fips | jq " .manifests[3].platform" ) " ]; then
83
85
loudecho " Error fips index image is missing images"
84
86
exit 1
85
87
fi
You can’t perform that action at this time.
0 commit comments