3 #Supported platforms of multi-arch images are: amd64 arm64
4 LINUX_ARCH=(amd64 arm64)
5 PLATFORMS=linux/${LINUX_ARCH[0]}
6 for i in $(seq 1 $[${#LINUX_ARCH[@]}-1])
8 PLATFORMS=$PLATFORMS,linux/${LINUX_ARCH[$i]}
11 IMAGES_OVN=("ovn-daemonset")
12 #IMAGES_OVN=("ovn-daemonset" "ovn-daemonset-u")
15 #Before push, 'docker login' is needed
18 if [ ! -f "./manifest-tool" ]
20 sudo apt-get install -y jq
21 wget https://github.com/estesp/manifest-tool/releases/download/v0.9.0/manifest-tool-linux-${BUILDARCH} \
23 chmod +x ./manifest-tool
26 for IMAGE in "${IMAGES_OVN[@]}"
28 echo "multi arch image: ""iecedge/${IMAGE}"
29 ./manifest-tool push from-args --platforms ${PLATFORMS} --template iecedge/${IMAGE}-ARCH:${BRANCH_TAG} \
30 --target iecedge/${IMAGE}:${BRANCH_TAG}
34 echo "Push fat manifest for multi-arch images:"