Add bullseye image for golang and return proper exitcode in mirror script.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Stanislav Nikitin 2022-06-29 15:21:43 +05:00
parent e0b6a10931
commit 4c057ad204
Signed by: pztrn
GPG Key ID: 1E944A0F0568B550
2 changed files with 5 additions and 4 deletions

View File

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

View File

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