Skip to content

Commit dbbd26c

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! Cache Docker images on GitHub container registry
1 parent 0f42b17 commit dbbd26c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/build-in-docker.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ fi
5050

5151
# building local image to "cache" installed dependencies for subsequent builds
5252
docker buildx build \
53+
--platform "$docker_platform" \
5354
"${extra_build_args[@]}" \
5455
--cache-from "type=registry,ref=${docker_tag}" \
5556
--cache-from "type=registry,ref=${default_branch_tag}" \
56-
--platform "$docker_platform" \
5757
-t "$docker_tag" \
5858
--build-arg ARCH="$ARCH" \
5959
--build-arg CMAKE_ARCH="$CMAKE_ARCH" \
@@ -71,6 +71,7 @@ if [ -t 0 ]; then tty_args+=("-t"); fi
7171
# of course, this only works reliably if you don't run this script from that directory
7272
# but it's still not the worst idea to do so
7373
docker run \
74+
--platform "$docker_platform" \
7475
--rm \
7576
-i \
7677
"${tty_args[@]}" \

0 commit comments

Comments
 (0)