Skip to content

Commit 591efe7

Browse files
committed
perf: include QEMU for platform virtualization
1 parent 4fce013 commit 591efe7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/az_acr_push.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@ jobs:
2323
uses: actions/checkout@v4
2424
with:
2525
submodules: 'true'
26+
27+
- name: Set up QEMU
28+
uses: docker/setup-qemu-action@v3
29+
with:
30+
platforms: arm64,arm
2631

2732
- name: Set up Docker Buildx
2833
uses: docker/setup-buildx-action@v3
2934
with:
30-
platforms: linux/amd64,linux/arm64
35+
platforms: linux/${{ matrix.platform }}
3136

3237
- name: Log into Azure registry
3338
uses: docker/login-action@v3
@@ -58,7 +63,7 @@ jobs:
5863
cache-from: type=gha
5964
cache-to: type=gha,mode=max
6065
build-args: |
61-
platform=linux/amd64,linux/arm64
66+
platform=linux/${{ matrix.platform }}
6267
label=dockerfile-path=https://github.com/${{ github.repository }}/blob/${{ github.sha }}/Dockerfile
6368
6469
- name: Build & Push ${{ github.event.repository.name }}:${{ matrix.platform }}-gpu
@@ -71,5 +76,5 @@ jobs:
7176
cache-from: type=gha
7277
cache-to: type=gha,mode=max
7378
build-args: |
74-
platform=linux/amd64,linux/arm64
79+
platform=linux/${{ matrix.platform }}
7580
label=dockerfile-path=https://github.com/${{ github.repository }}/blob/${{ github.sha }}/gpu.Dockerfile

0 commit comments

Comments
 (0)