Register gcloud as a Docker credential in Makefile

This commit is contained in:
Zhen Wang
2019-03-22 11:56:45 -07:00
parent 97f09be32e
commit c9c7864087
+2 -1
View File
@@ -112,7 +112,8 @@ build-in-docker: clean docker-builder
docker run -v `pwd`:/gopath/src/k8s.io/node-problem-detector/ npd-builder:latest bash -c 'cd /gopath/src/k8s.io/node-problem-detector/ && make build-binaries'
push-container: build-container
gcloud docker -- push $(IMAGE)
gcloud auth configure-docker
docker push $(IMAGE)
push-tar: build-tar
gsutil cp $(TARBALL) $(UPLOAD_PATH)/node-problem-detector/