We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bf2502 commit dc65c4bCopy full SHA for dc65c4b
.github/workflows/build-image-test.yaml
@@ -7,7 +7,12 @@ env:
7
8
jobs:
9
build:
10
- runs-on: ubuntu-latest
+ strategy:
11
+ matrix:
12
+ os: [ubuntu-latest]
13
+ arch: [amd64, arm64]
14
+
15
+ runs-on: ${{ matrix.os }}
16
steps:
17
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18
with:
@@ -61,7 +66,7 @@ jobs:
61
66
# Can't build both platforms and use --load at the same time
62
67
# https://github.com/docker/buildx/issues/59#issuecomment-1433097926
63
68
- 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'
65
70
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
71
72
context: .
0 commit comments