mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +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
|
.PHONY: build push
|
||||||
|
|
||||||
IMAGE=kube-cross
|
REGISTRY?=staging-k8s.gcr.io
|
||||||
|
IMAGE=$(REGISTRY)/kube-cross
|
||||||
TAG=$(shell cat VERSION)
|
TAG=$(shell cat VERSION)
|
||||||
|
|
||||||
|
|
||||||
all: push
|
all: push
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker build --pull -t staging-k8s.gcr.io/$(IMAGE):$(TAG) .
|
docker build --pull -t $(IMAGE):$(TAG) .
|
||||||
|
|
||||||
push: build
|
push: build
|
||||||
docker push staging-k8s.gcr.io/$(IMAGE):$(TAG)
|
docker push $(IMAGE):$(TAG)
|
||||||
|
Loading…
Reference in New Issue
Block a user