Fix function
This commit is contained in:
parent
b3af292266
commit
b0cde5ca68
|
@ -307,9 +307,9 @@ else:
|
|||
}
|
||||
|
||||
oci_push_to_registry () {
|
||||
if ! skopeo inspect --format "Image ${upstream_images}:${version} found on remote container repository." docker://${upstream_images}:${version}; then
|
||||
podman login --username ${CONTAINER_REPO_USER} --password ${CONTAINER_REPO_PASSWORD} ${upstream_images%%/*} &&
|
||||
if ! skopeo inspect --format "Image ${1} found on remote container repository." docker://${1}; then
|
||||
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 ${upstream_images}:${version} && 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)
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue