From 0996ce4018a20198f007397b730836a6cbee4e9a Mon Sep 17 00:00:00 2001 From: Marc Sluiter Date: Thu, 2 Apr 2020 12:06:50 +0200 Subject: [PATCH] Fix CI registry URL... again Signed-off-by: Marc Sluiter (cherry picked from commit ce45c15f2c19704c3a8d90f44407324abdae25c2) --- openshift-ci/Dockerfile.registry.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openshift-ci/Dockerfile.registry.build b/openshift-ci/Dockerfile.registry.build index 114302eb8..ae74c1dfd 100644 --- a/openshift-ci/Dockerfile.registry.build +++ b/openshift-ci/Dockerfile.registry.build @@ -4,8 +4,12 @@ ARG OPENSHIFT_BUILD_NAMESPACE COPY deploy/olm-catalog /registry/performance-addon-operator-catalog +# easier switching between CI clusters... +#ENV REG_URL=default-route-openshift-image-registry.apps.build01.ci.devcluster.openshift.com +ENV REG_URL=registry.svc.ci.openshift.org + # replaces performance-addon-operator image with the one built by openshift ci -RUN find /registry/performance-addon-operator-catalog/ -type f -exec sed -i "s|REPLACE_IMAGE|default-route-openshift-image-registry.apps.build01.ci.devcluster.openshift.com/$OPENSHIFT_BUILD_NAMESPACE/stable:performance-addon-operator|g" {} \; || : +RUN find /registry/performance-addon-operator-catalog/ -type f -exec sed -i "s|REPLACE_IMAGE|${REG_URL}/${OPENSHIFT_BUILD_NAMESPACE}/stable:performance-addon-operator|g" {} \; || : # Initialize the database RUN initializer --manifests /registry/performance-addon-operator-catalog --output bundles.db