Skip to content

Commit c49aee5

Browse files
committed
Merge branch 'master' into deploy
2 parents d78a576 + 301daf2 commit c49aee5

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

build/scripts/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ if [[ -z "$version" ]]; then
187187
version=$(get_default_version $distro)
188188
fi
189189

190-
image="${DOCKER_REGISTRY}linuxppc/build:$distro-$version"
190+
image="linuxppc/build:$distro-$version"
191191

192192
cmd+="$image "
193193
cmd+="/bin/container-build.sh $task"

build/scripts/image.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if [[ -z "$version" ]]; then
1515
version=$(get_default_version $distro)
1616
fi
1717

18-
image="${DOCKER_REGISTRY}linuxppc/build:$distro-$version"
18+
image="linuxppc/build:$distro-$version"
1919

2020
if [[ "$task" == "image" ]]; then
2121
cmd="$DOCKER images -q --filter=reference=$image"
@@ -26,7 +26,7 @@ if [[ "$task" == "image" ]]; then
2626
fi
2727
elif [[ "$task" == "pull-image" ]]; then
2828
arch_image="$image-$(uname -m)"
29-
cmd="$DOCKER pull $arch_image"
29+
cmd="$DOCKER pull ghcr.io/$arch_image"
3030
(set -x; $cmd)
3131

3232
if [[ $? -ne 0 ]]; then
@@ -58,7 +58,7 @@ elif [[ "$task" == "push-image" ]]; then
5858
fi
5959

6060
# Temporarily tag the image with the arch
61-
arch_image="$image-$(uname -m)"
61+
arch_image="ghcr.io/$image-$(uname -m)"
6262
cmd="$DOCKER tag $image $arch_image"
6363
(set -x; $cmd)
6464
if [[ $? -ne 0 ]]; then
@@ -106,12 +106,12 @@ if [[ -z "$GID" ]]; then
106106
GID=$(id -g)
107107
fi
108108

109-
from="${DOCKER_REGISTRY}$distro:$version"
109+
from="docker.io/$distro:$version"
110110

111111
if [[ "$distro" == "docs" ]]; then
112-
from="${DOCKER_REGISTRY}ubuntu:$version"
112+
from="docker.io/ubuntu:$version"
113113
elif [[ "$distro" == "ubuntu-allcross" ]]; then
114-
from="${DOCKER_REGISTRY}linuxppc/build:ubuntu-$version"
114+
from="linuxppc/build:ubuntu-$version"
115115
elif [[ "$distro" == "korg" ]]; then
116116
cmd+="--build-arg compiler_version=$version "
117117

@@ -122,9 +122,9 @@ elif [[ "$distro" == "korg" ]]; then
122122

123123
# Use an older distro for the 5.x toolchains.
124124
if [[ "$version" == 5.* ]]; then
125-
from="${DOCKER_REGISTRY}ubuntu:16.04"
125+
from="docker.io/ubuntu:16.04"
126126
else
127-
from="${DOCKER_REGISTRY}ubuntu:20.04"
127+
from="docker.io/ubuntu:20.04"
128128
fi
129129
fi
130130

build/scripts/lib.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,9 @@ function get_default_version()
104104

105105
DOCKER="docker"
106106
PODMAN_OPTS=""
107-
DOCKER_REGISTRY=""
108107
if command -v podman > /dev/null; then
109108
if (command -v docker && docker --version | grep -q podman) > /dev/null || ! command -v docker > /dev/null; then
110109
DOCKER="podman"
111110
PODMAN_OPTS="--security-opt label=disable --userns=keep-id"
112-
DOCKER_REGISTRY="docker.io/"
113111
fi
114112
fi

0 commit comments

Comments
 (0)