Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,19 @@ name: Docker images

jobs:
build-images:
name: Build & push Docker images
runs-on: ubuntu-22.04
name: Build & push Docker images (${{ matrix.runtime.name}}, ${{ matrix.config.arch }})
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/cache@v3.2.0
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/build-push-action@v3.2.0
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 }}