From 5ad8258a7dcc09adf492eb42f3a35c80317b615f Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Mon, 28 Oct 2024 17:11:02 +0200 Subject: [PATCH] ci/build-toolbox-image.sh: Always print how to use fetch the image Part-of: --- ci/scripts/build-toolbox-image.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/ci/scripts/build-toolbox-image.sh b/ci/scripts/build-toolbox-image.sh index 23ce973043..81abc7571d 100644 --- a/ci/scripts/build-toolbox-image.sh +++ b/ci/scripts/build-toolbox-image.sh @@ -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"