File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -102,15 +102,12 @@ jobs:
102102 exit 1
103103 fi
104104 amd64_found=$(echo "$manifest" | jq '.manifests[] | select(.platform.architecture == "amd64")')
105- arm64_found=$(echo "$manifest" | jq '.manifests[] | select(.platform.architecture == "arm64")')
106105 if [[ -z "$amd64_found" ]]; then
106+ echo "Multi-platform support for $IMAGE_NAME:$tag - have amd64"
107+ else
107108 echo "Multi-platform support check failed for $IMAGE_NAME:$tag - missing amd64"
108109 exit 1
109110 fi
110- if [[ -z "$arm64_found" ]]; then
111- echo "Multi-platform support check failed for $IMAGE_NAME:$tag - missing arm64"
112- exit 1
113- fi
114111 done
115112 done
116113
@@ -201,13 +198,10 @@ jobs:
201198 echo "Manifest not found for $IMAGE_NAME:$tag"
202199 exit 1
203200 fi
204- amd64_found=$(echo "$manifest" | jq '.manifests[] | select(.platform.architecture == "amd64")')
205201 arm64_found=$(echo "$manifest" | jq '.manifests[] | select(.platform.architecture == "arm64")')
206- if [[ -z "$amd64_found" ]]; then
207- echo "Multi-platform support check failed for $IMAGE_NAME:$tag - missing amd64"
208- exit 1
209- fi
210202 if [[ -z "$arm64_found" ]]; then
203+ echo "Multi-platform support for $IMAGE_NAME:$tag - have arm64"
204+ else
211205 echo "Multi-platform support check failed for $IMAGE_NAME:$tag - missing arm64"
212206 exit 1
213207 fi
You can’t perform that action at this time.
0 commit comments