Makefile
.PHONY: image citest test release
IMAGE_NAME ?= codeclimate/codeclimate-watson
RELEASE_REGISTRY ?= codeclimate
ifndef RELEASE_TAG
override RELEASE_TAG = latest
endif
image:
docker build --tag $(IMAGE_NAME) .
release:
docker tag $(IMAGE_NAME) $(RELEASE_REGISTRY)/codeclimate-watson:$(RELEASE_TAG)
docker push $(RELEASE_REGISTRY)/codeclimate-watson:$(RELEASE_TAG)