From 03c62b8aaa4fb22dbc3dc1be510b945ab9239546 Mon Sep 17 00:00:00 2001 From: Gitouche <26656-gitouche@users.noreply.framagit.org> Date: Sun, 19 Feb 2023 12:04:14 +0100 Subject: [PATCH] function oci_push_to_registry : logout from registry after upload --- functions.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/functions.sh b/functions.sh index 5fc5967..f02af51 100644 --- a/functions.sh +++ b/functions.sh @@ -314,6 +314,7 @@ oci_push_to_registry () { podman login --username ${CONTAINER_REPO_USER} --password ${CONTAINER_REPO_PASSWORD} ${1%%/*} && # Try x times because of unexplained error 500 for i in $(seq 1 3); do podman push ${1} && s=0 && break || s=$? && sleep 1; done; (exit $s) && + podman logout ${1%%/*} && podman image rm ${1} && podman pull ${1} else