diff --git a/mirror.sh b/mirror.sh index a9c80fc..c598643 100755 --- a/mirror.sh +++ b/mirror.sh @@ -121,14 +121,18 @@ function mirror() { function push_multiarch_image() { local image=$1 - if ! docker push -f "${REMOTE_IMAGE}"-amd64 &> /dev/null; then + if ! docker push -f "${REMOTE_IMAGE}"-amd64 &> /tmp/push-amd64; then echo -e "\t! amd64 image push failed!" + + echo -e "\nLogs:\n\n" && cat /tmp/push-amd64 && echo -e "\n" else echo -e "\t* amd64 image pushed" fi - if ! docker push -f ="${REMOTE_IMAGE}"-arm64 &> /dev/null; then + if ! docker push -f ="${REMOTE_IMAGE}"-arm64 &> /tmp/push-arm64; then echo -e "\t! arm64 image push failed!" + + echo -e "\nLogs:\n\n" && cat /tmp/push-arm64 && echo -e "\n" else echo -e "\t* arm64 image pushed" fi