You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set -x;forarchin$(ALL_ARCH.linux);do docker manifest annotate --os linux --arch $${arch} ${IMAGE}:${TAG}${IMAGE}:${TAG}-linux-$${arch};done
83
83
# For Windows images, we also need to include the "os.version" in the manifest list, so the Windows node can pull the proper image it needs.
84
-
# At the moment, docker manifest annotate doesn't allow us to set the os.version, so we'll have to it ourselves. The manifest list can be found locally as JSONs.
85
-
# See: https://github.com/moby/moby/issues/41417
86
-
# If the ${REGISTRY} is on dockerhub, the prefix "docker.io/" is optional. However, we need the full
87
-
# registry name for setting the os.version for Windows images below.
88
-
# If the registry name does not contain any slashes, we prepend "docker.io/"
89
-
# TODO(claudiub): Clean this up once the above issue has been fixed.
84
+
# we use awk to also trim the quotes around the OS version string.
sed -i -r "s/(\"os\"\:\"windows\")/\0,\"os.version\":$${full_version}/""${HOME}/.docker/manifests/$${manifest_image_folder}-${TAG}/$${manifest_image_folder}-${TAG}-windows-$${arch}-$${osversion}";\
0 commit comments