Show errors on push failures.
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Stanislav Nikitin 2023-01-01 22:47:33 +05:00
parent a0c1527615
commit b689e41696
No known key found for this signature in database
GPG Key ID: 9A63857413C83B4A

View File

@ -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