18
18
clean vet fmt version \
19
19
Dockerfile build-binaries docker-builder build-in-docker \
20
20
build-all build-all-container \
21
- build-tar-all push-all push-all-container push-manifest push-tar-all qemu-register
21
+ build-tar-all push-all push-all-container push-manifest push-tar-all qemu-register \
22
+ release-staging
22
23
23
24
TEMP_DIR := $(shell mktemp -d)
24
25
@@ -40,6 +41,9 @@ export DOCKER_CLI_EXPERIMENTAL := enabled
40
41
# REGISTRY is the container registry to push into.
41
42
REGISTRY? =staging-k8s.gcr.io
42
43
44
+ # STAGING_REGISTRY is the new registry for staging
45
+ STAGING_REGISTRY? =gcr.io/k8s-staging-npd
46
+
43
47
# UPLOAD_PATH is the cloud storage path to upload release tar.
44
48
UPLOAD_PATH? =gs://kubernetes-release
45
49
# Trim the trailing '/' in the path
@@ -123,6 +127,7 @@ version:
123
127
@echo $(VERSION )
124
128
125
129
./bin/log-counter : $(PKG_SOURCES )
130
+ ifeq ($(ENABLE_JOURNALD ) , 1)
126
131
CGO_ENABLED=$(CGO_ENABLED) GOOS=linux GOARCH=$(ARCH) GO111MODULE=on go build \
127
132
-mod vendor \
128
133
-o bin/log-counter-$(ARCH) \
@@ -190,20 +195,16 @@ build-container-%: qemu-register
190
195
build-container : clean build-in-docker Dockerfile
191
196
docker build -t $(IMAGE_WITH_ARCH ) .
192
197
193
- build-tar : build-in-docker
194
- cp bin/node-problem-detector-amd64 bin/node-problem-detector
195
- cp bin/log-counter-amd64 bin/log-counter
196
- cp bin/problem-maker-amd64 bin/problem-maker
197
- tar -zcvf $(TARBALL ) bin/ config/ test/e2e-install.sh
198
+ build-tar : ./bin/node-problem-detector ./bin/log-counter ./test/bin/problem-maker
199
+ tar -zcvf $(TARBALL ) bin/ config/ test/e2e-install.sh test/bin/problem-maker
198
200
sha1sum $(TARBALL )
199
201
md5sum $(TARBALL )
200
202
201
203
build-tar-all :
202
204
@for arch in $(ALL_ARCH ) ; do $(MAKE ) ARCH=$$ {arch} build-in-docker; done
203
205
cp bin/node-problem-detector-amd64 bin/node-problem-detector
204
206
cp bin/log-counter-amd64 bin/log-counter
205
- cp bin/problem-maker-amd64 bin/problem-maker
206
- tar -zcvf $(TARBALL-ALL ) bin/ config/ test/e2e-install.sh
207
+ tar -zcvf $(TARBALL-ALL ) bin/ config/ test/e2e-install.sh
207
208
sha1sum $(TARBALL-ALL )
208
209
md5sum $(TARBALL-ALL )
209
210
@@ -221,7 +222,7 @@ build-in-docker: clean docker-builder
221
222
-v ` pwd` :/gopath/src/k8s.io/node-problem-detector/ npd-builder:latest bash \
222
223
-c ' cd /gopath/src/k8s.io/node-problem-detector/ && make build-binaries'
223
224
224
- push-all-container : build-all-container
225
+ push-all-container : build-all-container $( addprefix push-container-, $( ALL_ARCH ) )
225
226
226
227
push-container-% :
227
228
$(MAKE ) ARCH=$* push-container
@@ -246,6 +247,9 @@ push-all: push-all-container push-manifest push-tar-all
246
247
247
248
push : push-container push-tar
248
249
250
+ release-staging :
251
+ REGISTRY=$(STAGING_REGISTRY ) $(MAKE ) push-all
252
+
249
253
clean :
250
254
rm -f bin/log-counter*
251
255
rm -f bin/node-problem-detector*
0 commit comments