Skip to content

Commit

Permalink
Add workflow to build arm64 flatpak builder image
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdragon-001 committed Jan 23, 2024
1 parent fe48709 commit 687ca1f
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Flatpak images

on:
pull_request:

permissions:
contents: read
packages: write

jobs:
flatpak:
name: Docker
runs-on: ARM64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/arm64
push: true
tags: ghcr.io/${{ github.repository_owner }}//flatpak-github-actions:gnome-45-arm64
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# syntax = docker/dockerfile:experimental
FROM fedora:latest

RUN dnf update -y && \
dnf install -y dbus-daemon flatpak flatpak-builder git-lfs python3-aiohttp python3-tenacity python3-gobject xorg-x11-server-Xvfb ccache zstd libappstream-glib && \
dnf clean all

RUN flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
RUN flatpak install flathub org.flatpak.Builder -y
RUN --security=insecure flatpak install -y --noninteractive flathub org.gnome.Platform//45 org.gnome.Sdk//45

ADD --chmod=755 https://raw.githubusercontent.com/flatpak/flat-manager/b07fe8652357ce16d9625f72f9acceaca94d860a/flat-manager-client /usr/bin

0 comments on commit 687ca1f

Please sign in to comment.