mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
kube-cross makefile add REGISTRY
REGISTRY is the docker registry where to push the image.
This commit is contained in:
parent
2cfd4a5eb9
commit
6afd8931b2
@ -14,14 +14,15 @@
|
||||
|
||||
.PHONY: build push
|
||||
|
||||
IMAGE=kube-cross
|
||||
REGISTRY?=staging-k8s.gcr.io
|
||||
IMAGE=$(REGISTRY)/kube-cross
|
||||
TAG=$(shell cat VERSION)
|
||||
|
||||
|
||||
all: push
|
||||
|
||||
build:
|
||||
docker build --pull -t staging-k8s.gcr.io/$(IMAGE):$(TAG) .
|
||||
docker build --pull -t $(IMAGE):$(TAG) .
|
||||
|
||||
push: build
|
||||
docker push staging-k8s.gcr.io/$(IMAGE):$(TAG)
|
||||
docker push $(IMAGE):$(TAG)
|
||||
|
Loading…
Reference in New Issue
Block a user