Skip to content

Commit c430627

Browse files
authored
Merge pull request #156 from thockin-tmp/gcr-vanity
Pushes go to staging-k8s.gcr.io
2 parents cf3519a + 3468934 commit c430627

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ VERSION:=$(shell git describe --tags --dirty)
2424
# TAG is the tag of the container image, default to binary version.
2525
TAG?=$(VERSION)
2626

27-
# PROJ is the image project.
28-
PROJ?=k8s.gcr.io
27+
# REGISTRY is the container registry to push into.
28+
REGISTRY?=staging-k8s.gcr.io
2929

3030
# UPLOAD_PATH is the cloud storage path to upload release tar.
3131
UPLOAD_PATH?=gs://kubernetes-release
@@ -42,7 +42,7 @@ PKG_SOURCES:=$(shell find pkg cmd -name '*.go')
4242
TARBALL:=node-problem-detector-$(VERSION).tar.gz
4343

4444
# IMAGE is the image name of the node problem detector container image.
45-
IMAGE:=$(PROJ)/node-problem-detector:$(TAG)
45+
IMAGE:=$(REGISTRY)/node-problem-detector:$(TAG)
4646

4747
# ENABLE_JOURNALD enables build journald support or not. Building journald support needs libsystemd-dev
4848
# or libsystemd-journal-dev.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Run `make` in the top directory. It will:
8787

8888
## Push Image
8989
`make push` uploads the docker image to registry. By default, the image will be uploaded to
90-
`k8s.gcr.io`. It's easy to modify the `Makefile` to push the image
90+
`staging-k8s.gcr.io`. It's easy to modify the `Makefile` to push the image
9191
to another registry.
9292

9393
## Start DaemonSet

pkg/util/nethealth/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
# If you update this image please bump the tag value before pushing.
1818
#
1919
# Usage:
20-
# [TAG=1.0] [REGISTRY=k8s.gcr.io] make push
20+
# [TAG=1.0] [REGISTRY=staging-k8s.gcr.io] make push
2121

2222
# Default registry, arch and tag. This can be overwritten by arguments to make
2323
TAG?=1.0
24-
REGISTRY?=k8s.gcr.io
24+
REGISTRY?=staging-k8s.gcr.io
2525
ARCH?=amd64
2626

2727
all: build
@@ -33,8 +33,8 @@ build: nethealth
3333
docker build -t $(REGISTRY)/kube-nethealth-$(ARCH):$(TAG) .
3434

3535
push: build
36-
ifeq ($(REGISTRY),k8s.gcr.io)
37-
gcloud docker push $(REGISTRY)/kube-nethealth-$(ARCH):$(TAG)
36+
ifeq ($(REGISTRY),staging-k8s.gcr.io)
37+
gcloud docker -- push $(REGISTRY)/kube-nethealth-$(ARCH):$(TAG)
3838
else
3939
docker push $(REGISTRY)/kube-nethealth-$(ARCH):$(TAG)
4040
endif

test/kernel_log_generator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
.PHONY: all build push
1818

19-
PROJ ?= k8s.gcr.io
19+
PROJ ?= staging-k8s.gcr.io
2020
TAG := 0.1
2121

2222
all: push

0 commit comments

Comments
 (0)