Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

Commit 4385f0e

Browse files
Makefile: Fix override image tagging and add push override target
docker tag has no -f flag
1 parent 8c6c154 commit 4385f0e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ container:
9393

9494
docker build --pull -t $(PREFIX)/heapster-$(ARCH):$(VERSION) $(TEMP_DIR)
9595
ifneq ($(OVERRIDE_IMAGE_NAME),)
96-
docker tag -f $(PREFIX)/heapster-$(ARCH):$(VERSION) $(OVERRIDE_IMAGE_NAME)
96+
docker tag $(PREFIX)/heapster-$(ARCH):$(VERSION) $(OVERRIDE_IMAGE_NAME)
9797
endif
9898

9999
ifndef DOCKER_IN_DOCKER
@@ -128,6 +128,9 @@ push-influxdb:
128128
push-grafana:
129129
PREFIX=$(PREFIX) make -C grafana push
130130

131+
push-override:
132+
docker push $(OVERRIDE_IMAGE_NAME)
133+
131134
gcr-login:
132135
ifeq ($(findstring gcr.io,$(PREFIX)),gcr.io)
133136
@echo "If you are pushing to a gcr.io registry, you have to be logged in via 'docker login'; 'gcloud docker push' can't push manifest lists yet."

0 commit comments

Comments
 (0)