FEAT: add hyprland container

This commit is contained in:
2026-01-06 16:18:10 +01:00
parent b9986c0376
commit c47b6f4265
4 changed files with 23 additions and 5 deletions

View File

@@ -25,6 +25,11 @@ jobs:
build_push:
name: Build and push image
runs-on: ubuntu-24.04
strategy:
matrix:
desktop_environment:
- gnome
- hyprland
permissions:
contents: read
@@ -62,8 +67,8 @@ jobs:
id: metadata
with:
tags: |
type=raw,value=${{ github.ref_name }}.${{ env.DEFAULT_TAG }}
type=raw,value=${{ github.ref_name }}.{{date 'YYYYMMDD-HHmm'}}
type=raw,value=${{ github.ref_name }}.${{ matrix.desktop_environment }}.${{ env.DEFAULT_TAG }}
type=raw,value=${{ github.ref_name }}.${{ matrix.desktop_environment }}.{{date 'YYYYMMDD-HHmm'}}
type=sha,enable=${{ github.event_name == 'pull_request' }}
type=ref,event=pr
labels: |
@@ -75,7 +80,7 @@ jobs:
org.opencontainers.image.title=${{ env.IMAGE_NAME }}
org.opencontainers.image.url=https://github.com/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}/tree/${{ github.sha }}
org.opencontainers.image.vendor=${{ github.repository_owner }}
org.opencontainers.image.version=${{ github.ref_name }}.{{date 'YYYYMMDD-HHmm'}}
org.opencontainers.image.version=${{ github.ref_name }}.${{ matrix.desktop_environment }}.{{date 'YYYYMMDD-HHmm'}}
io.artifacthub.package.deprecated=false
io.artifacthub.package.keywords=${{ env.IMAGE_KEYWORDS }}
io.artifacthub.package.license=Apache-2.0
@@ -95,6 +100,8 @@ jobs:
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
oci: false
build-args: |
DESKTOP_ENVIRONMENT=${{ matrix.desktop_environment }}
- name: Login to GitHub Container Registry
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3

View File

@@ -24,11 +24,13 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=tmpfs,dst=/tmp \
/ctx/01_pre_desktop.sh
ARG DESKTOP_ENVIRONMENT="gnome"
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
/ctx/02_gnome.sh
/ctx/02_${DESKTOP_ENVIRONMENT}.sh
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \

View File

@@ -1,11 +1,14 @@
clean:
sudo rm -fr flathub output output-repo
sudo podman system prune
for container in $$(sudo podman container list --external --format "{{.ID}}"); do sudo podman rm $$container; done
for container in $$(sudo podman container list --external --format "{{.ID}}"); do sudo podman rm --force $$container; done
oci:
sudo podman build --network=host -t podman-image .
oci_hyprland:
sudo podman build --network=host -t podman-image-hyprland --build-arg DESKTOP_ENVIRONMENT=hyprland .
CONTAINER_IMAGE=localhost/podman-image
FILESYSTEM_TYPE=ext4
qcow:

6
build_files/02_hyprland.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
set -ouex pipefail
dnf5 copr enable -y solopasha/hyprland
dnf5 install -y hyprland