Skip to content

Commit 93a119b

Browse files
authored
fix: create imagestream when pushing to the openshift internal registry (#2594)
1 parent a8dbcbd commit 93a119b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ image/push/probe: image/build/probe
579579
# push the image to the OpenShift internal registry
580580
image/push/internal: IMAGE_TAG ?= $(image_tag)
581581
image/push/internal: docker/login/internal
582+
@oc get imagestream $(IMAGE_NAME) -n $(NAMESPACE) >/dev/null 2>&1 || oc create imagestream $(IMAGE_NAME) -n $(NAMESPACE) --lookup-local
582583
$(DOCKER) buildx build -t "$(shell oc get route default-route -n openshift-image-registry -o jsonpath="{.spec.host}")/$(NAMESPACE)/$(IMAGE_NAME):$(IMAGE_TAG)" --platform linux/amd64 --push .
583584
.PHONY: image/push/internal
584585

0 commit comments

Comments
 (0)