Tag :latest in nfs-client Makefile

This commit is contained in:
Matthew Wong 2017-08-14 17:57:29 -04:00
parent eb39ebd88a
commit e110404782
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,7 @@ endif
IMAGE = $(REGISTRY)nfs-client-provisioner:$(VERSION)
IMAGE_ARM = $(REGISTRY)nfs-client-provisioner-arm:$(VERSION)
MUTABLE_IMAGE = $(REGISTRY)nfs-client-provisioner:latest
MUTABLE_IMAGE_ARM = $(REGISTRY)nfs-client-provisioner-arm:latest
all: build image build_arm image_arm
@ -34,12 +35,15 @@ build_arm:
image:
sudo docker build -t $(IMAGE) docker/x86_64
sudo docker tag $(MUTABLE_IMAGE) $(IMAGE)
image_arm:
sudo docker run --rm --privileged multiarch/qemu-user-static:register --reset
sudo docker build -t $(IMAGE_ARM) docker/arm
sudo docker tag $(MUTABLE_IMAGE_ARM) $(IMAGE_ARM)
push:
docker push $(IMAGE)
docker push $(MUTABLE_IMAGE)
docker push $(IMAGE_ARM)
docker push $(MUTABLE_IMAGE_ARM)