Skip to content

Commit

Permalink
Merge pull request #171 from slintes/backport-ci-fix
Browse files Browse the repository at this point in the history
[release-4.4] Backport CI registry URL fix
  • Loading branch information
openshift-merge-robot authored Apr 9, 2020
2 parents 0ee8f31 + 0996ce4 commit e50ea37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openshift-ci/Dockerfile.registry.build
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e50ea37

Please sign in to comment.