functions.sh : fix oci_push_to_registry text
This commit is contained in:
parent
83ab3f71fc
commit
829abcbae5
|
@ -307,7 +307,7 @@ else:
|
||||||
}
|
}
|
||||||
|
|
||||||
oci_push_to_registry () {
|
oci_push_to_registry () {
|
||||||
if ! skopeo inspect --format "Image ${1} found on remote container repository." docker://${1}; then
|
if ! skopeo inspect --format "Image ${1} found on remote container registry." docker://${1}; then
|
||||||
podman login --username ${CONTAINER_REPO_USER} --password ${CONTAINER_REPO_PASSWORD} ${1%%/*} &&
|
podman login --username ${CONTAINER_REPO_USER} --password ${CONTAINER_REPO_PASSWORD} ${1%%/*} &&
|
||||||
# Try x times because of unexplained error 500
|
# 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) &&
|
for i in $(seq 1 3); do podman push ${1} && s=0 && break || s=$? && sleep 1; done; (exit $s) &&
|
||||||
|
|
Loading…
Reference in a new issue