You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helm/examples/wordpress/images/nginx/Makefile

24 lines
388 B

.PHONY: all build push clean
DOCKER_REGISTRY = gcr.io
PREFIX = $(DOCKER_REGISTRY)/$(PROJECT)
IMAGE = nginx
TAG = latest
DIR = .
all: build
build:
docker build -t $(PREFIX)/$(IMAGE):$(TAG) $(DIR)
push: build
ifeq ($(DOCKER_REGISTRY),gcr.io)
gcloud docker push $(PREFIX)/$(IMAGE):$(TAG)
else
docker push $(PREFIX)/$(IMAGE):$(TAG)
endif
clean:
docker rmi $(PREFIX)/$(IMAGE):$(TAG)