Skip to content

Commit

Permalink
Merge pull request #7634 from raywainman/addon-resizer-auto-build
Browse files Browse the repository at this point in the history
Minor tweaks to addon-resizer Makefile to enable automatic builds
  • Loading branch information
k8s-ci-robot authored Dec 19, 2024
2 parents 50dca67 + b36bbfa commit 9037fd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions addon-resizer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ARCH ?= amd64
export DOCKER_CLI_EXPERIMENTAL=enabled

GOARM=7
GOLANG_VERSION = 1.22
GOLANG_VERSION = 1.23
REGISTRY = gcr.io/k8s-staging-autoscaling
IMGNAME = addon-resizer
IMAGE = $(REGISTRY)/$(IMGNAME)
Expand Down Expand Up @@ -55,7 +55,7 @@ container: .container-$(ARCH)
cp -r * $(TEMP_DIR)
cd $(TEMP_DIR) && sed -i 's|BASEIMAGE|$(BASEIMAGE)|g' Dockerfile

docker run --rm -it -v $(TEMP_DIR):$(TEMP_DIR):Z -v `pwd`:/go/src/k8s.io/autoscaler/addon-resizer/:Z \
docker run --rm -v $(TEMP_DIR):$(TEMP_DIR):Z -v `pwd`:/go/src/k8s.io/autoscaler/addon-resizer/:Z \
golang:${GOLANG_VERSION} \
/bin/bash -c "\
cd /go/src/k8s.io/autoscaler/addon-resizer/ && \
Expand All @@ -68,7 +68,7 @@ container: .container-$(ARCH)
-t $(MULTI_ARCH_IMG):$(TAG) $(TEMP_DIR)

test:
docker run --rm -it -v `pwd`:/go/src/k8s.io/autoscaler/addon-resizer/:Z \
docker run --rm -v `pwd`:/go/src/k8s.io/autoscaler/addon-resizer/:Z \
golang:${GOLANG_VERSION} \
/bin/bash -c "\
cd /go/src/k8s.io/autoscaler/addon-resizer/ && \
Expand Down

0 comments on commit 9037fd8

Please sign in to comment.