Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mo3et committed Jan 4, 2025
1 parent a6632f7 commit 1fe24e5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build-and-release-services-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,16 @@ jobs:
for dir in build/images/*/; do
IMAGE_NAME=$(basename "$dir" | tr '[:upper:]' '[:lower:]')
for tag in $(echo "${{ steps.meta.outputs.tags }}" | tr ',' '\n'); do
docker manifest inspect "${{ secrets.DOCKER_USERNAME }}/$IMAGE_NAME:$tag"
docker manifest inspect "ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:$tag"
docker manifest inspect "registry.cn-hangzhou.aliyuncs.com/openimsdk/$IMAGE_NAME:$tag"
manifest=$(docker manifest inspect "${{ secrets.DOCKER_USERNAME }}/$IMAGE_NAME:$tag" || echo "error")
if [[ "$manifest" == "error" ]]; then
echo "Manifest not found for $IMAGE_NAME:$tag"
exit 1
fi
amd64_found=$(echo "$manifest" | jq '.manifests[] | select(.platform.architecture == "amd64")')
arm64_found=$(echo "$manifest" | jq '.manifests[] | select(.platform.architecture == "arm64")')
if [[ -z "$amd64_found" || -z "$arm64_found" ]]; then
echo "Multi-platform support check failed for $IMAGE_NAME:$tag"
exit 1
fi
done
done

0 comments on commit 1fe24e5

Please sign in to comment.