Skip to content

Commit dc65c4b

Browse files
authored
ci(docker): Add tests for arm64 (#637)
1 parent 4bf2502 commit dc65c4b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build-image-test.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ env:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest]
13+
arch: [amd64, arm64]
14+
15+
runs-on: ${{ matrix.os }}
1116
steps:
1217
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
1318
with:
@@ -61,7 +66,7 @@ jobs:
6166
# Can't build both platforms and use --load at the same time
6267
# https://github.com/docker/buildx/issues/59#issuecomment-1433097926
6368
- name: Build Multi-arch docker-image
64-
if: steps.changed-files-specific.outputs.any_changed == 'true'
69+
if: steps.changed-files-specific.outputs.any_changed == 'true' && matrix.os == 'ubuntu-latest' && matrix.arch == 'amd64'
6570
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
6671
with:
6772
context: .

0 commit comments

Comments
 (0)