diff --git a/images/golang.sh b/images/golang.sh index c713f6c..22feefd 100644 --- a/images/golang.sh +++ b/images/golang.sh @@ -1,2 +1,3 @@ #!/usr/bin/env bash -echo "golang:1.18.3-alpine" +# Bullseye image for GCC. +echo "golang:1.18.3-alpine golang:1.18.3-bullseye" diff --git a/mirror.sh b/mirror.sh index d99a259..0274a39 100755 --- a/mirror.sh +++ b/mirror.sh @@ -55,7 +55,7 @@ function get_amd64_image() { if docker manifest inspect "${REMOTE_IMAGE}-amd64" &> /dev/null; then echo -e "\t* Layers for amd64 architecture for this image exist." - return + return 2 fi echo -ne "\t* Getting amd64 layers... " @@ -89,7 +89,7 @@ function get_arm64_image() { if docker manifest inspect "${REMOTE_IMAGE}-arm64" &> /dev/null; then echo -e "\t* Layers for arm64 architecture for this image exist." - return + return 2 fi echo -ne "\t* Getting arm64 layers... " @@ -98,7 +98,7 @@ function get_arm64_image() { if ! docker pull --platform=linux/arm64 "${image}" &> /dev/null; then echo "FAIL!" - return + return 1 fi echo -n "Downloaded, "