Purge the manifest after the push

This commit is contained in:
Manjunath A Kumatagi 2018-09-27 20:34:54 +05:30
parent 3a2f276a56
commit cf992ddbe8
2 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@ all-container: $(addprefix sub-container-,$(ALL_ARCH))
all-push: $(addprefix sub-push-,$(ALL_ARCH))
docker manifest create --amend $(IMAGE):$(TAG) $(shell echo $(ALL_ARCH) | sed -e "s~[^ ]*~$(IMAGE)\-&:$(TAG)~g")
@for arch in $(ALL_ARCH); do docker manifest annotate --arch $${arch} ${IMAGE}:${TAG} ${IMAGE}-$${arch}:${TAG}; done
docker manifest push ${IMAGE}:${TAG}
docker manifest push --purge ${IMAGE}:${TAG}
container: .container-$(ARCH)
.container-$(ARCH):

View File

@ -49,7 +49,7 @@ all-container: $(addprefix sub-container-,$(ALL_ARCH))
all-push: $(addprefix sub-push-,$(ALL_ARCH))
docker manifest create --amend $(IMAGE):$(TAG) $(shell echo $(ALL_ARCH) | sed -e "s~[^ ]*~$(IMAGE)\-&:$(TAG)~g")
@for arch in $(ALL_ARCH); do docker manifest annotate --arch $${arch} ${IMAGE}:${TAG} ${IMAGE}-$${arch}:${TAG}; done
docker manifest push ${IMAGE}:${TAG}
docker manifest push --purge ${IMAGE}:${TAG}
container: .container-$(ARCH)
.container-$(ARCH):