Skip to content

Commit c43de0b

Browse files
committed
build: Use AWS container registry
1 parent b6e2694 commit c43de0b

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

build/scripts/image.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,22 @@ image="linuxppc/build:$distro-$version"
2020
if [[ "$distro" == "fedora" ]]; then
2121
from="registry.fedoraproject.org/$distro:$version"
2222
elif [[ "$distro" == "docs" ]]; then
23-
from="docker.io/ubuntu:$version"
23+
from="public.ecr.aws/ubuntu/ubuntu:$version"
2424
elif [[ "$distro" == "allcross" ]]; then
25-
from="docker.io/debian:$version"
25+
from="public.ecr.aws/debian/debian:$version"
2626
elif [[ "$distro" == "korg" ]]; then
2727
# Use an older distro for the 5.x toolchains.
2828
if [[ "$version" == 5.* ]]; then
29-
from="docker.io/ubuntu:16.04"
29+
from="public.ecr.aws/docker/library/ubuntu:16.04"
3030
elif [[ "$version" == 13.* ]]; then
31-
from="docker.io/ubuntu:23.04"
31+
from="public.ecr.aws/ubuntu/ubuntu:23.04"
3232
else
33-
from="docker.io/ubuntu:20.04"
33+
from="public.ecr.aws/ubuntu/ubuntu:20.04"
3434
fi
35+
elif [[ "$distro" == "ubuntu" && "$version" == 16.* ]]; then
36+
from="public.ecr.aws/docker/library/ubuntu:16.04"
3537
else
36-
from="docker.io/$distro:$version"
38+
from="public.ecr.aws/$distro/$distro:$version"
3739
fi
3840

3941
if [[ "$task" == "image" ]]; then

0 commit comments

Comments
 (0)