Update Cloud Build config

This commit is contained in:
Ciprian Hacman
2025-09-11 15:39:21 +03:00
parent 1b44203e43
commit 003b7f17f9
2 changed files with 7 additions and 21 deletions

View File

@@ -29,7 +29,7 @@ DOCKER_PLATFORMS=linux/amd64,linux/arm64
PLATFORMS=$(LINUX_PLATFORMS) windows_amd64
# VERSION is the version of the binary.
VERSION?=$(shell if [ -d .git ]; then echo `git describe --tags --dirty`; else echo "UNKNOWN"; fi)
VERSION?=$(shell git describe --tags --always --dirty)
# TAG is the tag of the container image, default to binary version.
TAG?=$(VERSION)
@@ -275,10 +275,6 @@ build-in-docker: clean docker-builder
-c 'cd /gopath/src/k8s.io/node-problem-detector/ && make build-binaries'
push-container: build-container
# So we can push to docker hub by setting REGISTRY
ifneq (,$(findstring gcr.io,$(REGISTRY)))
gcloud auth configure-docker
endif
# Build should be cached from build-container
docker buildx build --push --platform $(DOCKER_PLATFORMS) -t $(IMAGE) --build-arg LOGCOUNTER=$(LOGCOUNTER) .