-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: CI, add brew support, migrate to justfiles
- Loading branch information
Showing
25 changed files
with
501 additions
and
191 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,48 @@ | ||
name: integration testing | ||
on: | ||
pull_request: | ||
merge_group: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
push-ghcr: | ||
name: Build and test image | ||
runs-on: ubuntu-24.04 | ||
permissions: | ||
contents: read | ||
packages: write | ||
id-token: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
major_version: [40, 41] | ||
include: | ||
- major_version: 40 | ||
is_latest_version: false | ||
is_stable_version: true | ||
- major_version: 41 | ||
is_latest_version: true | ||
is_stable_version: false | ||
steps: | ||
# Checkout push-to-registry action GitHub repository | ||
- name: Checkout Push to Registry action | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Deps | ||
run: | | ||
sudo apt-get install just podman | ||
- name: Build Image | ||
id: build_image | ||
env: | ||
FEDORA_MAJOR_VERSION: ${{ matrix.major_version }} | ||
run: | | ||
just container-build | ||
- name: Test Image | ||
id: test_image | ||
run: | | ||
just container-test |
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
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
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
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 |
---|---|---|
@@ -1,26 +1,18 @@ | ||
FROM registry.fedoraproject.org/fedora:latest AS builder | ||
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-41}" | ||
|
||
FROM registry.fedoraproject.org/fedora:${FEDORA_MAJOR_VERSION} AS builder | ||
|
||
ENV UBLUE_ROOT=/app/output | ||
|
||
WORKDIR /app | ||
ADD . /app | ||
|
||
RUN dnf install --assumeyes python3-pip && pip install topgrade | ||
RUN dnf install -y just git | ||
|
||
RUN dnf install \ | ||
--disablerepo='*' \ | ||
--enablerepo='fedora,updates' \ | ||
--setopt install_weak_deps=0 \ | ||
--nodocs \ | ||
--assumeyes \ | ||
'dnf-command(builddep)' \ | ||
rpkg \ | ||
rpm-build && \ | ||
mkdir -p "$UBLUE_ROOT" && \ | ||
rpkg spec --outdir "$UBLUE_ROOT" && \ | ||
dnf builddep -y output/ublue-update.spec | ||
RUN just container-rpm-build | ||
|
||
FROM builder AS rpm | ||
FROM scratch | ||
|
||
RUN make build-rpm | ||
ENV UBLUE_ROOT=/app/output | ||
COPY --from=builder ${UBLUE_ROOT}/ublue-os/rpms /tmp/rpms |
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
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,12 @@ | ||
[containers] | ||
netns="host" | ||
userns="host" | ||
ipcns="host" | ||
utsns="host" | ||
cgroupns="host" | ||
cgroups="disabled" | ||
log_driver = "k8s-file" | ||
[engine] | ||
cgroup_manager = "cgroupfs" | ||
events_logger="file" | ||
runtime="crun" |
Oops, something went wrong.