Skip to content

Commit 0a9f120

Browse files
committed
feat: build docker images for arm64 too
1 parent acbc99e commit 0a9f120

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/docker.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ name: Docker images
88
jobs:
99
build-images:
1010
name: Build & push Docker images
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-${{ matrix.config.run-version }}
1212

1313
strategy:
1414
matrix:
15+
config:
16+
- arch: x86_64
17+
run-version: 24.04
18+
platform: linux/amd64
19+
- arch: aarch64
20+
run-version: 24.04-arm
21+
platform: linux/arm/v8
22+
1523
runtime:
1624
- name: freedesktop-20.08
1725
packages: org.freedesktop.Platform//20.08 org.freedesktop.Sdk//20.08
@@ -144,9 +152,9 @@ jobs:
144152
uses: actions/[email protected]
145153
with:
146154
path: /tmp/.buildx-cache
147-
key: ${{ runner.os }}-buildx-${{ github.sha }}
155+
key: ${{ runner.os }}-${{ matrix.config.arch }}-buildx-${{ github.sha }}
148156
restore-keys: |
149-
${{ runner.os }}-buildx-
157+
${{ runner.os }}-${{ matrix.config.arch }}-buildx-
150158
151159
- name: Build & push the Fedora base image to local registry
152160
uses: docker/[email protected]
@@ -181,3 +189,4 @@ jobs:
181189
file: ${{ matrix.runtime.name }}.Dockerfile
182190
push: true
183191
tags: bilelmoussaoui/flatpak-github-actions:${{ matrix.runtime.name }}
192+
platforms: ${{ matrix.config.platform }}

0 commit comments

Comments
 (0)