mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-09 21:21:14 +00:00
Change kubemark Makefile to be provider independent
The Kubemark Makefile is defaulted to gcr.io. Instead, make it provider independent.
This commit is contained in:
@@ -15,8 +15,18 @@
|
|||||||
# build Kubemark image from currently built binaries containing both 'real' master and Hollow Node.
|
# build Kubemark image from currently built binaries containing both 'real' master and Hollow Node.
|
||||||
# This makefile assumes that the kubemark binary is present in this directory.
|
# This makefile assumes that the kubemark binary is present in this directory.
|
||||||
|
|
||||||
all:
|
REGISTRY?=gcr.io
|
||||||
docker build --pull -t gcr.io/$(PROJECT)/kubemark .
|
PROJECT?=google_containers
|
||||||
gcloud docker -- push gcr.io/$(PROJECT)/kubemark
|
|
||||||
|
|
||||||
.PHONY: all
|
all: gcloudpush
|
||||||
|
|
||||||
|
build:
|
||||||
|
docker build --pull -t $(REGISTRY)/$(PROJECT)/kubemark .
|
||||||
|
|
||||||
|
gcloudpush: build
|
||||||
|
gcloud docker -- push $(REGISTRY)/$(PROJECT)/kubemark
|
||||||
|
|
||||||
|
push: build
|
||||||
|
docker -- push $(REGISTRY)/$(PROJECT)/kubemark
|
||||||
|
|
||||||
|
.PHONY: all build gcloudpush push
|
||||||
|
Reference in New Issue
Block a user