Skip to content

Commit

Permalink
openshift disconnected: fix 03_mirror.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Jan 31, 2025
1 parent 4339351 commit 8e93f23
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/05_mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,17 @@ curl -Ls https://mirror.openshift.com/pub/openshift-v4/clients/ocp-dev-preview/{
OCP_RELEASE=$(grep 'Name:' /tmp/release.txt | awk -F ' ' '{print $2}')-x86_64
{% endif %}

{% if version == 'ci' %}
{% set namespace = 'ocp/release' %}
{% if okd %}
PREFIX=origin/release-scos
{% elif version == 'candidate' %}
{% set namespace = 'openshift/release-images' %}
PREFIX=openshift/release-images
{% elif version == 'ci' %}
PREFFIX=ocp/ocp-release
{% else %}
{% set namespace = 'openshift-release-dev/ocp-release' %}
PREFIX=openshift-release-dev/ocp-release
{% endif %}
NAMESPACE={{ namespace }}
echo $REGISTRY:$REGISTRY_PORT/$NAMESPACE:$OCP_RELEASE > /root/version.txt

echo $REGISTRY:$REGISTRY_PORT/$PREFIX:$OCP_RELEASE > /root/version.txt

REGISTRY_USER={{ disconnected_user }}
REGISTRY_PASSWORD={{ disconnected_password }}
Expand Down

0 comments on commit 8e93f23

Please sign in to comment.