@@ -7,7 +7,7 @@ LDFLAGS?=-s
7
7
ENVVAR=CGO_ENABLED =0
8
8
GOOS? =linux
9
9
GOARCH? =$(shell go env GOARCH)
10
- REGISTRY? =staging-k8s.gcr.io
10
+ REGISTRY? =us-central1-docker.pkg.dev/rwainman-gke-dev/cluster-autoscaler
11
11
DOCKER_NETWORK? =default
12
12
SUPPORTED_BUILD_TAGS =$(shell ls cloudprovider/builder/ | grep -e '^builder_.* \.go' | sed 's/builder_\(.* \) \.go/\1/')
13
13
ifdef BUILD_TAGS
@@ -64,7 +64,8 @@ dev-release-arch-%: build-arch-% make-image-arch-% push-image-arch-%
64
64
make-image : make-image-arch-$(GOARCH )
65
65
66
66
make-image-arch-% :
67
- GOOS=$(GOOS ) GOARCH=$* docker buildx build --pull --platform linux/$* \
67
+ GOOS=$(GOOS ) docker buildx build --pull --platform linux/$* \
68
+ --build-arg " GOARCH=$* " \
68
69
-t ${IMAGE} -$* :${TAG} \
69
70
-f Dockerfile .
70
71
@echo " Image ${TAG}${FOR_PROVIDER} -$* completed"
@@ -74,12 +75,15 @@ push-image: push-image-arch-$(GOARCH)
74
75
push-image-arch-% :
75
76
./push_image.sh ${IMAGE} -$* :${TAG}
76
77
78
+ push-release-image-arch-% :
79
+ docker push ${IMAGE} -$* :${TAG}
80
+
77
81
push-manifest :
78
82
docker manifest create ${IMAGE} :${TAG} \
79
83
$(addprefix $(REGISTRY ) /cluster-autoscaler$(PROVIDER ) -, $(addsuffix :$(TAG ) , $(ALL_ARCH ) ) )
80
84
docker manifest push --purge ${IMAGE} :${TAG}
81
85
82
- execute-release : $(addprefix make-image-arch-,$(ALL_ARCH ) ) $(addprefix push-image-arch-,$(ALL_ARCH ) ) push-manifest
86
+ execute-release : $(addprefix make-image-arch-,$(ALL_ARCH ) ) $(addprefix push-release- image-arch-,$(ALL_ARCH ) ) push-manifest
83
87
@echo " Release ${TAG}${FOR_PROVIDER} completed"
84
88
85
89
clean : clean-arch-$(GOARCH )
0 commit comments