Add bullseye image for golang and return proper exitcode in mirror script.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e0b6a10931
commit
4c057ad204
@ -1,2 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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"
|
||||||
|
@ -55,7 +55,7 @@ function get_amd64_image() {
|
|||||||
if docker manifest inspect "${REMOTE_IMAGE}-amd64" &> /dev/null; then
|
if docker manifest inspect "${REMOTE_IMAGE}-amd64" &> /dev/null; then
|
||||||
echo -e "\t* Layers for amd64 architecture for this image exist."
|
echo -e "\t* Layers for amd64 architecture for this image exist."
|
||||||
|
|
||||||
return
|
return 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -ne "\t* Getting amd64 layers... "
|
echo -ne "\t* Getting amd64 layers... "
|
||||||
@ -89,7 +89,7 @@ function get_arm64_image() {
|
|||||||
if docker manifest inspect "${REMOTE_IMAGE}-arm64" &> /dev/null; then
|
if docker manifest inspect "${REMOTE_IMAGE}-arm64" &> /dev/null; then
|
||||||
echo -e "\t* Layers for arm64 architecture for this image exist."
|
echo -e "\t* Layers for arm64 architecture for this image exist."
|
||||||
|
|
||||||
return
|
return 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -ne "\t* Getting arm64 layers... "
|
echo -ne "\t* Getting arm64 layers... "
|
||||||
@ -98,7 +98,7 @@ function get_arm64_image() {
|
|||||||
if ! docker pull --platform=linux/arm64 "${image}" &> /dev/null; then
|
if ! docker pull --platform=linux/arm64 "${image}" &> /dev/null; then
|
||||||
echo "FAIL!"
|
echo "FAIL!"
|
||||||
|
|
||||||
return
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -n "Downloaded, "
|
echo -n "Downloaded, "
|
||||||
|
Loading…
Reference in New Issue
Block a user