Compare commits

..

No commits in common. "b6187bdf85b588f02333ee972674aada2a3f3189" and "cd457d4e8847effab3bb97ed61872c8e96c5cd4e" have entirely different histories.

3 changed files with 4 additions and 10 deletions

View File

@ -1,4 +1,4 @@
FROM rust:1.88-bookworm AS builder
FROM rust:1.87-bookworm AS builder
WORKDIR /src

View File

@ -1,4 +1,4 @@
FROM rust:1.88-bookworm AS builder
FROM rust:1.87-bookworm AS builder
WORKDIR /src

View File

@ -18,24 +18,18 @@ should_push() {
build_with_buildx() {
local dockerfile=$1
local image=$2
local platform_args=()
if should_push; then
platform_args=(--platform "${PLATFORMS}")
docker buildx build \
"${platform_args[@]}" \
--platform "${PLATFORMS}" \
-f "${dockerfile}" \
-t "${image}:${IMAGE_TAG}" \
-t "${image}:latest" \
--push \
"${ROOT_DIR}"
else
# buildx cannot `--load` a manifest list, so load the host platform only.
local host_platform
host_platform="$(docker version --format '{{.Server.Os}}/{{.Server.Arch}}' 2>/dev/null || echo linux/amd64)"
platform_args=(--platform "${host_platform}")
docker buildx build \
"${platform_args[@]}" \
--platform "${PLATFORMS}" \
-f "${dockerfile}" \
-t "${image}:${IMAGE_TAG}" \
-t "${image}:latest" \