Skip to content

Commit

Permalink
[release-1.10] Fix release index build (#2682)
Browse files Browse the repository at this point in the history
Signed-off-by: stirabos <stirabos@redhat.com>
  • Loading branch information
tiraboschi committed Dec 13, 2023
1 parent 2527945 commit d23ea5b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion hack/build-index-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ function create_index_image() {

podman push "${INDEX_IMAGE_NAME}"

mv ${PACKAGE_NAME}/${CURRENT_VERSION} ${PACKAGE_NAME}/${INITIAL_VERSION}
if [[ "${CURRENT_VERSION}" != "${INITIAL_VERSION}" ]]; then
mv ${PACKAGE_NAME}/${CURRENT_VERSION} ${PACKAGE_NAME}/${INITIAL_VERSION}
fi
}

function create_file_based_catalog() {
Expand All @@ -71,6 +73,8 @@ function create_file_based_catalog() {
if [ ! -d fbc-catalog ]
then
# The index image is already in file-based format. Extracting its catalog file
# TODO: we should handle the case where we are releasing X.Y.0 and
# quay.io/kubevirt/hyperconverged-cluster-index:X.Y.0 never got pushed!
oc image extract "${INDEX_IMAGE_NAME}" --file /configs/catalog.json
else
# The migration took place
Expand Down

0 comments on commit d23ea5b

Please sign in to comment.