From 5ba70389bdc9257a47053907640c2e76779178e7 Mon Sep 17 00:00:00 2001 From: Tom Denham Date: Mon, 13 Aug 2018 14:40:23 -0700 Subject: [PATCH] Makefile: Update release to include all arches --- Makefile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 9d640f0..1368921 100644 --- a/Makefile +++ b/Makefile @@ -93,11 +93,11 @@ clean: # Only one pb.go file exists outside the vendor dir rm -rf bin vendor proto/felixbackend.pb.go - docker rmi $(CONTAINER_NAME):latest-$(ARCH) || true - docker rmi $(CONTAINER_NAME):$(VERSION)-$(ARCH) || true + -docker rmi $(CONTAINER_NAME):latest-$(ARCH) + -docker rmi $(CONTAINER_NAME):$(VERSION)-$(ARCH) ifeq ($(ARCH),amd64) - docker rmi $(CONTAINER_NAME):latest || true - docker rmi $(CONTAINER_NAME):$(VERSION) || true + -docker rmi $(CONTAINER_NAME):latest + -docker rmi $(CONTAINER_NAME):$(VERSION) endif ############################################################################### # Building the binary @@ -347,10 +347,10 @@ ifneq ($(VERSION), $(GIT_VERSION)) $(error Attempt to build $(VERSION) from $(GIT_VERSION)) endif - $(MAKE) image - $(MAKE) tag-images IMAGETAG=$(VERSION) + $(MAKE) image-all + $(MAKE) tag-images-all IMAGETAG=$(VERSION) # Generate the `latest` images. - $(MAKE) tag-images IMAGETAG=latest + $(MAKE) tag-images-all IMAGETAG=latest ## Verifies the release artifacts produces by `make release-build` are correct. release-verify: release-prereqs @@ -374,7 +374,7 @@ release-publish: release-prereqs git push origin $(VERSION) # Push images. - $(MAKE) push IMAGETAG=$(VERSION) ARCH=$(ARCH) + $(MAKE) push-all IMAGETAG=$(VERSION) @echo "Finalize the GitHub release based on the pushed tag." @echo "" @@ -389,7 +389,7 @@ release-publish: release-prereqs # run this target for alpha / beta / release candidate builds, or patches to earlier Calico versions. ## Pushes `latest` release images. WARNING: Only run this for latest stable releases. release-publish-latest: release-prereqs - $(MAKE) push IMAGETAG=latest ARCH=$(ARCH) + $(MAKE) push-all IMAGETAG=latest # release-prereqs checks that the environment is configured properly to create a release. release-prereqs: