Skip to content

Commit 94aac99

Browse files
committed
build: Pull Fedora images from registry.fedoraproject.org
To avoid docker hub rate limits.
1 parent 04d1eed commit 94aac99

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

build/scripts/image.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ fi
1717

1818
image="linuxppc/build:$distro-$version"
1919

20-
from="docker.io/$distro:$version"
21-
22-
if [[ "$distro" == "docs" ]]; then
20+
if [[ "$distro" == "fedora" ]]; then
21+
from="registry.fedoraproject.org/$distro:$version"
22+
elif [[ "$distro" == "docs" ]]; then
2323
from="docker.io/ubuntu:$version"
2424
elif [[ "$distro" == "allcross" ]]; then
2525
from="docker.io/debian:$version"
@@ -32,6 +32,8 @@ elif [[ "$distro" == "korg" ]]; then
3232
else
3333
from="docker.io/ubuntu:20.04"
3434
fi
35+
else
36+
from="docker.io/$distro:$version"
3537
fi
3638

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

0 commit comments

Comments
 (0)