remove latest docker tag for docker build script

This commit is contained in:
tickstep 2022-01-05 22:23:12 +08:00
parent ddc8de2c17
commit 094ad8f6a8

View File

@ -109,13 +109,6 @@ $docker_image_name:$version-arm64 \
$docker_image_name:$version-armv7 \
$docker_image_name:$version-armv5 \
--amend
docker manifest create $docker_image_name:latest \
$docker_image_name:$version-amd64 \
$docker_image_name:$version-386 \
$docker_image_name:$version-arm64 \
$docker_image_name:$version-armv7 \
$docker_image_name:$version-armv5 \
--amend
echo "annotate manifest for amd64 image"
@ -124,11 +117,6 @@ docker manifest annotate \
--os=linux \
$docker_image_name:$version \
$docker_image_name:$version-amd64
docker manifest annotate \
--arch=amd64 \
--os=linux \
$docker_image_name:latest \
$docker_image_name:$version-amd64
echo "annotate manifest for 386 image"
docker manifest annotate \
@ -136,11 +124,6 @@ docker manifest annotate \
--os=linux \
$docker_image_name:$version \
$docker_image_name:$version-386
docker manifest annotate \
--arch=386 \
--os=linux \
$docker_image_name:latest \
$docker_image_name:$version-386
echo "annotate manifest for arm64 image"
docker manifest annotate \
@ -149,13 +132,6 @@ docker manifest annotate \
--variant=v8 \
$docker_image_name:$version \
$docker_image_name:$version-arm64
docker manifest annotate \
--arch=arm64 \
--os=linux \
--variant=v8 \
$docker_image_name:latest \
$docker_image_name:$version-arm64
echo "annotate manifest for armv7 image"
docker manifest annotate \
@ -164,12 +140,6 @@ docker manifest annotate \
--variant=v7 \
$docker_image_name:$version \
$docker_image_name:$version-armv7
docker manifest annotate \
--arch=arm \
--os=linux \
--variant=v7 \
$docker_image_name:latest \
$docker_image_name:$version-armv7
echo "annotate manifest for armv5 image"
docker manifest annotate \
@ -178,16 +148,9 @@ docker manifest annotate \
--variant=v6 \
$docker_image_name:$version \
$docker_image_name:$version-armv5
docker manifest annotate \
--arch=arm \
--os=linux \
--variant=v6 \
$docker_image_name:latest \
$docker_image_name:$version-armv5
echo "push manifest to docker hub"
docker manifest push $docker_image_name:$version
docker manifest push $docker_image_name:latest
echo "clear local docker image"
docker rmi $docker_image_name:$version-amd64