kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch14/docker-images/push-manifests.ps1

11 lines
236 B
PowerShell

$images=$(yq e '.services.[].image' docker-compose.yml)
foreach ($image in $images)
{
docker manifest create --amend $image `
"$($image)-linux-arm64" `
"$($image)-linux-amd64"
docker manifest push $image
}