Skip to content

Commit 4fce013

Browse files
committed
perf: use multi-arch images
1 parent 81e65a7 commit 4fce013

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/az_acr_push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
az-acr-push:
88
name: "Docker: Build & Push"
9-
runs-on: ${{ matrix.platform == 'amd64' && 'ubuntu-latest' || 'macos-14'}}
9+
runs-on: ubuntu-latest
1010
environment: dev
1111
env:
1212
AZURE_CONTAINER_REGISTRY: ${{ vars.AZURE_CONTAINER_REGISTRY }}
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up Docker Buildx
2828
uses: docker/setup-buildx-action@v3
2929
with:
30-
platforms: linux/${{ matrix.platform }}
30+
platforms: linux/amd64,linux/arm64
3131

3232
- name: Log into Azure registry
3333
uses: docker/login-action@v3
@@ -58,7 +58,7 @@ jobs:
5858
cache-from: type=gha
5959
cache-to: type=gha,mode=max
6060
build-args: |
61-
platform=linux/${{ matrix.platform }}
61+
platform=linux/amd64,linux/arm64
6262
label=dockerfile-path=https://github.com/${{ github.repository }}/blob/${{ github.sha }}/Dockerfile
6363
6464
- name: Build & Push ${{ github.event.repository.name }}:${{ matrix.platform }}-gpu
@@ -71,5 +71,5 @@ jobs:
7171
cache-from: type=gha
7272
cache-to: type=gha,mode=max
7373
build-args: |
74-
platform=linux/${{ matrix.platform }}
74+
platform=linux/amd64,linux/arm64
7575
label=dockerfile-path=https://github.com/${{ github.repository }}/blob/${{ github.sha }}/gpu.Dockerfile

0 commit comments

Comments
 (0)