Skip to content

Commit

Permalink
Fix another issue in multi-arch images
Browse files Browse the repository at this point in the history
Follow-up of PR kubevirt#3303 - need to push the images before creating the
manifest, also for the index image.

Signed-off-by: Nahshon Unna-Tsameret <[email protected]>
  • Loading branch information
nunnatsa committed Feb 21, 2025
1 parent aa76863 commit 14cc61e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hack/build-index-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ function create_file_based_catalog() {

IMAGES=
for arch in ${ARCHITECTURES}; do
podman build --platform="linux/${arch}" -t "${INDEX_IMAGE_NAME}-${arch}" -f fbc-catalog.Dockerfile
IMAGES="${IMAGES} ${INDEX_IMAGE_NAME}-${arch}"
current_image="${INDEX_IMAGE_NAME}-${arch}"
podman build --platform="linux/${arch}" -t "${current_image}" -f fbc-catalog.Dockerfile
podman push "${current_image}"
IMAGES="${IMAGES} ${current_image}"
done

podman manifest create "${INDEX_IMAGE_NAME}" ${IMAGES}
Expand Down

0 comments on commit 14cc61e

Please sign in to comment.