File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 17
17
.PHONY : all \
18
18
vet fmt version test e2e-test \
19
19
build-binaries build-container build-tar build \
20
- docker-builder build-in-docker push-container push clean depup
20
+ docker-builder build-in-docker push-container push-tar push clean depup
21
21
22
22
all : build
23
23
@@ -35,6 +35,11 @@ TAG?=$(VERSION)
35
35
# REGISTRY is the container registry to push into.
36
36
REGISTRY? =gcr.io/k8s-staging-npd
37
37
38
+ # UPLOAD_PATH is the cloud storage path to upload release tar.
39
+ UPLOAD_PATH? =gs://kubernetes-release
40
+ # Trim the trailing '/' in the path
41
+ UPLOAD_PATH: =$(shell echo $(UPLOAD_PATH ) | sed '$$s/\/* $$//')
42
+
38
43
# PKG is the package name of node problem detector repo.
39
44
PKG: =k8s.io/node-problem-detector
40
45
@@ -259,7 +264,11 @@ endif
259
264
# Build should be cached from build-container
260
265
docker buildx build --push --platform $(DOCKER_PLATFORMS) -t $(IMAGE) --build-arg BASEIMAGE=$(BASEIMAGE) --build-arg LOGCOUNTER=$(LOGCOUNTER) .
261
266
262
- push : push-container build-tar
267
+ push-tar : build-tar
268
+ gsutil cp $(TARBALL ) $(UPLOAD_PATH ) /node-problem-detector/
269
+ gsutil cp node-problem-detector-$(VERSION ) -* .tar.gz* $(UPLOAD_PATH ) /node-problem-detector/
270
+
271
+ push : push-container push-tar
263
272
264
273
coverage.out :
265
274
rm -f coverage.out
You can’t perform that action at this time.
0 commit comments