From abe4d69229aa09f1868c9b19bca02087c6eaaa19 Mon Sep 17 00:00:00 2001 From: Sergio Arroutbi Date: Thu, 28 Sep 2023 13:42:31 +0200 Subject: [PATCH] Include option to avoid login (#159) Signed-off-by: Sergio Arroutbi --- tools/index_tools/tang_index.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/index_tools/tang_index.sh b/tools/index_tools/tang_index.sh index 0130c770..19f3fdf8 100755 --- a/tools/index_tools/tang_index.sh +++ b/tools/index_tools/tang_index.sh @@ -45,8 +45,10 @@ version=$2 digest=$(echo "${CO_image_with_digest}" | awk -F: '{print $2}') sub_digest="${digest:0:12}" -echo "Login into quay.io ..." -"${CONTAINER_MGR}" login quay.io -u sarroutb +test -z "${DO_NOT_LOGIN}" && { + echo "Login into quay.io ..." + "${CONTAINER_MGR}" login quay.io -u sarroutb +} echo "sub_digest:${sub_digest}" #1. Mirror bundle container image