Skip to content

Commit

Permalink
--platform matching and upgrade aarch builder image
Browse files Browse the repository at this point in the history
- attempt to match the platform properly in the builder image, don't build both when not needed
  • Loading branch information
swelborn committed Dec 20, 2024
1 parent 18b3486 commit 77531df
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/scripts/docker/build_and_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

# arch=x86_64
arch=aarch64

if [ "$arch" = "x86_64" ]; then
platform=linux/amd64
elif [ "$arch" = "aarch64" ]; then
platform=linux/arm64
fi

image_base=quay.io/pypa/manylinux_2_28_${arch}
tag=samwelborn/stempy_wheel_builder_${arch}

docker build . --platform=linux/amd64,linux/arm64 -t $tag --build-arg BASE_IMAGE=$image_base --build-arg ARCH=$arch
docker build . --platform=$platform -t $tag --build-arg BASE_IMAGE=$image_base --build-arg ARCH=$arch
docker push $tag

0 comments on commit 77531df

Please sign in to comment.