-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Stefan Midjich
committed
Nov 20, 2024
0 parents
commit bd3a790
Showing
3 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
name: Build | ||
on: | ||
#schedule: | ||
# - cron: "21 21 * * *" | ||
push: | ||
branches: ["main"] | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: "fedora-atomic-hyprland" | ||
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }} | ||
REGISTRY_USER: ${{ github.actor }} | ||
REGISTRY_PASSWORD: ${{ github.token }} | ||
|
||
|
||
jobs: | ||
podman-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/[email protected] | ||
|
||
- name: Build container image | ||
uses: redhat-actions/[email protected] | ||
with: | ||
context: "." | ||
containerfiles: Containerfile | ||
image: ${{ env.IMAGE_NAME }} | ||
layers: false | ||
oci: true | ||
|
||
- name: Push to ghcr.io | ||
uses: redhat-actions/[email protected] | ||
with: | ||
image: ${{ env.IMAGE_NAME }} | ||
tags: "latest" | ||
registry: ${{ env.IMAGE_REGISTRY }} | ||
username: ${{ env.REGISTRY_USER }} | ||
password: ${{ env.REGISTRY_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#FROM quay.io/fedora/fedora-sway-atomic:latest | ||
FROM quay.io/fedora/fedora-coreos:testing | ||
|
||
RUN dnf -y install \ | ||
curl git tmux \ | ||
# Hyprland build dependencies | ||
ninja-build cmake meson gcc-c++ libxcb-devel libX11-devel pixman-devel \ | ||
wayland-protocols-devel cairo-devel pango-devel wayland-devel libdrm-devel \ | ||
libxkbcommon-devel systemd-devel libseat-devel mesa-libEGL-devel \ | ||
libinput-devel xcb-util-wm-devel xorg-x11-server-Xwayland-devel \ | ||
mesa-libgbm-devel xcb-util-renderutil-devel \ | ||
hwdata libdisplay-info-devel libliftoff-devel 'dnf5-command(builddep)' && \ | ||
dnf -y builddep hyprland && \ | ||
pushd /tmp && curl -LO https://github.com/hyprwm/Hyprland/releases/latest/download/source-v0.45.2.tar.gz && \ | ||
tar -xvaf source-v0.45.2.tar.gz && pushd /tmp/hyprland-source && \ | ||
meson _build && ninja -C _build && sudo ninja -C _build install && \ | ||
cp example/hyprland.desktop /usr/share/wayland-sessions/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Fedora Atomic Hyprland image | ||
|
||
This is a bootable image of Fedora Atomic Sway with the latest Hyprland Window Manager built and installed. |