Skip to content

Commit 56fbac6

Browse files
committed
🐛📦 Fix the OCI manylinux image platform tag
This was caused by a mistake during initial migration from docker to podman in ansible#181. The original command looked like `docker buildx build --platform linux/arm64` but the `redhat-actions/buildah-build` action has an input called `arch:` that we started using. And we've prefixed the passed value with `linux/`. It would've been fine if we used the `platform:` input but we didn't. The consequence was that the images we were making were tagged with an additional leading `linux/` prefix in the platform metadata which made it look like `linux/linux/arm64`. The issue became evident in ansible#648 that attempted to bump the version of `cibuildwheel`. And the container interaction started failing loudly as this tool started using the `--platform` option when working with OCI images in v2.21 [[1]]. [1]: pypa/cibuildwheel#1961
1 parent 83c22c2 commit 56fbac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build-manylinux-container-images.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jobs:
9292
id: build-image
9393
uses: redhat-actions/buildah-build@v2.13
9494
with:
95-
arch: linux/${{ env.QEMU_ARCH }}
95+
arch: ${{ env.QEMU_ARCH }}
9696
image: ${{ env.FULL_IMAGE_NAME }}
9797
tags: >-
9898
${{ github.sha }}

0 commit comments

Comments
 (0)