File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,10 @@ export LOCAL_REGISTRY_ADDRESS=${LOCAL_REGISTRY_ADDRESS:-"192.168.111.1:5000"}
41
41
#
42
42
# See https://openshift-release.svc.ci.openshift.org for release details
43
43
#
44
- LATEST_CI_IMAGE=$( curl https://openshift-release.svc.ci.openshift.org/api/v1/releasestream/4.4.0-0.ci/latest | grep -o ' registry.svc.ci.openshift.org[^"]\+' )
44
+ # if we provide OPENSHIFT_RELEASE_IMAGE, do not curl. This is needed for offline installs
45
+ if [ -z " ${OPENSHIFT_RELEASE_IMAGE} " ]; then
46
+ LATEST_CI_IMAGE=$( curl https://openshift-release.svc.ci.openshift.org/api/v1/releasestream/4.4.0-0.ci/latest | grep -o ' registry.svc.ci.openshift.org[^"]\+' )
47
+ fi
45
48
export OPENSHIFT_RELEASE_IMAGE=" ${OPENSHIFT_RELEASE_IMAGE:- $LATEST_CI_IMAGE } "
46
49
export OPENSHIFT_INSTALL_PATH=" $GOPATH /src/github.com/openshift/installer"
47
50
You can’t perform that action at this time.
0 commit comments