Skip to content

Commit

Permalink
Merge pull request #38 from tomdee/release-all-arches
Browse files Browse the repository at this point in the history
Makefile: Update release to include all arches
  • Loading branch information
tomdee authored Aug 20, 2018
2 parents 25b8851 + 5ba7038 commit cbea219
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 ""
Expand All @@ -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:
Expand Down

0 comments on commit cbea219

Please sign in to comment.