VERSION=3.2 IMAGE=jams ifneq ($(REGISTRY),) _REGISTRY =$(REGISTRY)/ endif .PHONY: build push all build: docker build -t $(REGISTRY)/$(IMAGE):$(VERSION) . push: docker push $(REGISTRY)/$(IMAGE):$(VERSION) all: build push