Skip to content

Commit

Permalink
feat: build docker images for arm64 too
Browse files Browse the repository at this point in the history
  • Loading branch information
Totto16 committed Feb 5, 2025
1 parent acbc99e commit c3fd4ab
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@ name: Docker images
jobs:
build-images:
name: Build & push Docker images
runs-on: ubuntu-22.04
runs-on: ubuntu-${{ matrix.config.run-version }}

strategy:
matrix:
config:
- arch: x86_64
run-version: 24.04
platform: linux/amd64
- arch: aarch64
run-version: 24.04-arm
platform: linux/arm/v8

runtime:
- name: freedesktop-20.08
packages: org.freedesktop.Platform//20.08 org.freedesktop.Sdk//20.08
Expand Down Expand Up @@ -144,9 +152,9 @@ jobs:
uses: actions/[email protected]
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
key: ${{ runner.os }}-${{ matrix.config.arch }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
${{ runner.os }}-${{ matrix.config.arch }}-buildx-
- name: Build & push the Fedora base image to local registry
uses: docker/[email protected]
Expand Down Expand Up @@ -181,3 +189,4 @@ jobs:
file: ${{ matrix.runtime.name }}.Dockerfile
push: true
tags: bilelmoussaoui/flatpak-github-actions:${{ matrix.runtime.name }}
platforms: ${{ matrix.config.platform }}

0 comments on commit c3fd4ab

Please sign in to comment.