From 8723719c50732928cad1352a0ee3f96d3ec13d09 Mon Sep 17 00:00:00 2001 From: Tomasz Adamski Date: Tue, 19 Mar 2024 16:28:00 +0100 Subject: [PATCH] docker-build example: export OPENSHIFT_IMAGE_REGISTRY variable --- examples/docker-build/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/docker-build/README.md b/examples/docker-build/README.md index bd33d63c..fe42a0fb 100644 --- a/examples/docker-build/README.md +++ b/examples/docker-build/README.md @@ -118,7 +118,7 @@ export IMAGE=myapp:latest export OPENSHIFT_NS=$(oc project -q) oc registry login # Copy the route in the env variable OPENSHIFT_IMAGE_REGISTRY -OPENSHIFT_IMAGE_REGISTRY=$(oc registry info) +export OPENSHIFT_IMAGE_REGISTRY=$(oc registry info) docker login -u openshift -p $(oc whoami -t) $OPENSHIFT_IMAGE_REGISTRY docker tag $IMAGE $OPENSHIFT_IMAGE_REGISTRY/$OPENSHIFT_NS/$IMAGE docker push $OPENSHIFT_IMAGE_REGISTRY/$OPENSHIFT_NS/$IMAGE