Echo log if pulling failed.
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Stanislav Nikitin 2023-01-01 22:44:31 +05:00
parent 66ca161018
commit 1ff7f5ebdc
No known key found for this signature in database
GPG Key ID: 9A63857413C83B4A

View File

@ -61,9 +61,11 @@ function get_image() {
echo -ne "\t* Getting ${arch} layers... "
# arm64 layers might be missing. So we just put "FAIL!" here and do nothing else.
if ! docker pull --platform=linux/"${arch}" "${image}" &> /dev/null; then
if ! docker pull --platform=linux/"${arch}" "${image}" &> "/tmp/pull-${arch}"; then
echo "FAIL!"
echo -e "\nLogs:\n\n" && cat "/tmp/pull-${arch}" && echo -e "\n"
# We presume that amd64 layers are always present. Returning an error here if they're absent.
if [ "${arch}" == "amd64" ]; then
return 1