Skip to content

Commit 231f97a

Browse files
committed
perf: add arm64 support to az_acr_release
1 parent eee2a6f commit 231f97a

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/az_acr_push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
tags: ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ matrix.platform }}-gpu
7777
cache-from: type=gha
7878
cache-to: type=gha,mode=max
79+
platforms: linux/${{ matrix.platform }}
7980
build-args: |
8081
platform=linux/${{ matrix.platform }}
8182
label=dockerfile-path=https://github.com/${{ github.repository }}/blob/${{ github.sha }}/gpu.Dockerfile

.github/workflows/az_acr_release.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,30 @@ jobs:
2020
with:
2121
submodules: 'true'
2222

23+
- name: Set up QEMU
24+
uses: docker/setup-qemu-action@v3
25+
with:
26+
platforms: arm64,arm
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@v3
30+
with:
31+
platforms: linux/amd64,linux/arm64
32+
2333
- name: Log into registry
2434
uses: docker/login-action@v3
2535
with:
2636
registry: "${{ env.AZURE_CONTAINER_REGISTRY }}"
2737
username: "${{ env.ACR_LOGIN_USERNAME }}"
2838
password: "${{ env.ACR_LOGIN_PASSWORD }}"
2939

30-
- name: Set up Docker Buildx
31-
uses: docker/setup-buildx-action@v3
32-
3340
- name: Build & Push ${{ github.event.repository.name }}:amd64
3441
if: ${{ github.event_name != 'release' }}
3542
uses: docker/build-push-action@v5
3643
with:
3744
cache-from: type=gha
3845
cache-to: type=gha,mode=max
46+
platforms: linux/amd64
3947
file: ${{ env.DOCKERFILE }}
4048
tags: ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:amd64
4149
push: true
@@ -49,6 +57,7 @@ jobs:
4957
with:
5058
cache-from: type=gha
5159
cache-to: type=gha,mode=max
60+
platforms: linux/arm64
5261
file: ${{ env.DOCKERFILE }}
5362
tags: ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:arm64
5463
push: true
@@ -61,6 +70,7 @@ jobs:
6170
with:
6271
cache-from: type=gha
6372
cache-to: type=gha,mode=max
73+
platforms: linux/amd64
6474
file: ${{ env.DOCKERFILE }}
6575
tags: ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:${{ env.IMAGE_TAG }}
6676
push: true
@@ -73,6 +83,7 @@ jobs:
7383
with:
7484
cache-from: type=gha
7585
cache-to: type=gha,mode=max
86+
platforms: linux/amd64
7687
file: ${{ env.DOCKERFILE }}
7788
tags: ${{ env.AZURE_CONTAINER_REGISTRY }}/${{ github.event.repository.name }}:latest
7889
push: true

0 commit comments

Comments
 (0)