Skip to content

Commit 5bd105a

Browse files
authored
fix(image-multiarch): skip qemu if only one platform is requested (#198)
https://typeform.atlassian.net/browse/PLT-000 Skip QEMU if only one platform is requested. Mostly, we build ARM images on ARM runners now. There a few ML services that still build for ARM and AMD, they would continue working as today after this change. Only thing it doesn't cover is [something like this](https://github.com/Typeform/intigreton/blob/bcda0e16a73b98624c23bb3696f51005d3d466e4/.github/workflows/ci.yml#L66) which are easy to fix (switch to ARM base image if exists, or use AMD runner) and slightly strange usage.
1 parent 9dff4bd commit 5bd105a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/image-multiarch.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
- name: Checkout
6262
uses: actions/checkout@v5
6363
- name: Set up QEMU
64+
if: ${{ contains(inputs.platforms, ',') }}
6465
uses: docker/setup-qemu-action@v3
6566
with:
6667
image: 567716553783.dkr.ecr.us-east-1.amazonaws.com/docker-hub/tonistiigi/binfmt:latest

0 commit comments

Comments
 (0)