ci/build-toolbox-image.sh: Always print how to use fetch the image

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7769>
This commit is contained in:
Jordan Petridis 2024-10-28 17:11:02 +02:00 committed by GStreamer Marge Bot
parent 19d5a58450
commit 5ad8258a7d

View file

@ -146,16 +146,13 @@ TOOLBOX_LATEST="$CI_REGISTRY_IMAGE/$FDO_REPO_SUFFIX:gst-toolbox-${GST_UPSTREAM_B
podman login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
if check_image_base; then
echo Image $TOOLBOX_IMAGE exists and is up to date.
exit 0
if ! check_image_base; then
build_container
podman push "$TOOLBOX_IMAGE"
podman push "$TOOLBOX_LATEST"
fi
build_container
podman push "$TOOLBOX_IMAGE"
podman push "$TOOLBOX_LATEST"
echo "Create your toolbox with either of the following commands"
echo " $ toolbox create gst-toolbox --image $TOOLBOX_LATEST"
echo " $ toolbox create gst-toolbox-$TOOLBOX_BRANCH --image $TOOLBOX_IMAGE"