Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman committed Mar 30, 2024
2 parents 247cb67 + 3b0b970 commit 41b7470
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 74 deletions.
76 changes: 18 additions & 58 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,12 @@
name: Build Bazzite
on:
schedule:
- cron: '40 16 * * 2,5' # 16:40 utc tues thurs
pull_request:
branches:
- testing
- unstable
paths-ignore:
- '**.md'
- '**.txt'
- 'repo_content/**'
- 'spec_files/**'
- 'post_install_files/**'
- 'press_kit/**'
- '.github/workflows/build_iso.yml'
push:
branches:
- testing
- unstable
paths-ignore:
- '**.md'
- '**.txt'
- 'repo_content/**'
- 'spec_files/**'
- 'post_install_files/**'
- 'press_kit/**'
- '.github/workflows/build_iso.yml'
merge_group:
- cron: '40 17 * * *'
workflow_dispatch:
env:
IMAGE_REGISTRY: ghcr.io/${{ github.repository_owner }}
KERNEL_VERSION: 6.7.9-207.fsync
KERNEL_VERSION: main
#KERNEL_VERSION: 6.7.9-207.fsync

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
Expand All @@ -47,25 +23,17 @@ jobs:
strategy:
fail-fast: false
matrix:
base_image_flavor: [main, asus, framework, surface]
base_name: [bazzite, bazzite-deck, bazzite-nvidia]
base_image_name: [kinoite, silverblue]
major_version: [39]
base_image_flavor: [main]
base_name: [bazzite]
base_image_name: [kinoite]
major_version: [39, 40]
include:
- major_version: 39
is_latest_version: true
is_stable_version: true
exclude:
- base_name: bazzite-deck
base_image_flavor: nvidia
- base_name: bazzite-deck
base_image_flavor: asus-nvidia
- base_name: bazzite-deck
base_image_flavor: surface
- base_name: bazzite-deck
base_image_flavor: surface-nvidia
- base_name: bazzite-nvidia
base_image_flavor: framework
- major_version: 40
is_latest_version: false
is_stable_version: false
steps:
- name: Verify base image
uses: EyeCantCU/cosign-action/verify@v0.2.2
Expand Down Expand Up @@ -237,14 +205,6 @@ jobs:
extra-args: |
--target=${{ matrix.base_name }}
- name: Sign kernel
uses: EyeCantCU/kernel-signer@v0.1.3
with:
image: ${{ steps.build_image.outputs.image }}
privkey: ${{ secrets.AKMOD_PRIVKEY_20230518 }}
pubkey: /etc/pki/akmods/certs/akmods-ublue.der
tags: ${{ steps.build_image.outputs.tags }}

# Workaround bug where capital letters in your GitHub username make it impossible to push to GHCR.
# https://github.com/macbre/push-to-ghcr/issues/12
- name: Lowercase Registry
Expand All @@ -270,14 +230,14 @@ jobs:
extra-args: |
--disable-content-trust
- name: Sign container image
uses: EyeCantCU/cosign-action/sign@v0.2.2
if: github.event_name != 'pull_request'
with:
containers: ${{ env.IMAGE_NAME }}
registry-token: ${{ secrets.GITHUB_TOKEN }}
signing-secret: ${{ secrets.SIGNING_SECRET }}
tags: ${{ steps.push.outputs.digest }}
#- name: Sign container image
# uses: EyeCantCU/cosign-action/sign@v0.2.2
# if: github.event_name != 'pull_request'
# with:
# containers: ${{ env.IMAGE_NAME }}
# registry-token: ${{ secrets.GITHUB_TOKEN }}
# signing-secret: ${{ secrets.SIGNING_SECRET }}
# tags: ${{ steps.push.outputs.digest }}

- name: Echo outputs
if: github.event_name != 'pull_request'
Expand Down
30 changes: 14 additions & 16 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ FROM ${BASE_IMAGE}:${FEDORA_MAJOR_VERSION} AS bazzite
ARG IMAGE_NAME="${IMAGE_NAME:-bazzite}"
ARG IMAGE_VENDOR="${IMAGE_VENDOR:-ublue-os}"
ARG IMAGE_FLAVOR="${IMAGE_FLAVOR:-main}"
ARG AKMODS_FLAVOR="${AKMODS_FLAVOR:-fsync}"
ARG AKMODS_FLAVOR="${AKMODS_FLAVOR:-main}"
ARG IMAGE_BRANCH="${IMAGE_BRANCH:-main}"
ARG BASE_IMAGE_NAME="${BASE_IMAGE_NAME:-kinoite}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-39}"
Expand Down Expand Up @@ -41,20 +41,18 @@ RUN wget https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/repo/fedora-"
wget https://pkgs.tailscale.com/stable/fedora/tailscale.repo -O /etc/yum.repos.d/tailscale.repo && \
sed -i 's@gpgcheck=1@gpgcheck=0@g' /etc/yum.repos.d/tailscale.repo

# Install kernel-fsync
RUN wget https://copr.fedorainfracloud.org/coprs/sentry/kernel-fsync/repo/fedora-"${FEDORA_MAJOR_VERSION}"/sentry-kernel-fsync-fedora-"${FEDORA_MAJOR_VERSION}".repo -O /etc/yum.repos.d/_copr_sentry-kernel-fsync.repo && \
rpm-ostree cliwrap install-to-root / && \
rpm-ostree override replace \
--experimental \
--from repo=copr:copr.fedorainfracloud.org:sentry:kernel-fsync \
kernel-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
kernel-core-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
kernel-modules-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
kernel-modules-core-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
kernel-modules-extra-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
kernel-uki-virt-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
kernel-headers-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
kernel-devel-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64
# # Install kernel-fsync
# RUN wget https://copr.fedorainfracloud.org/coprs/sentry/kernel-fsync/repo/fedora-"${FEDORA_MAJOR_VERSION}"/sentry-kernel-fsync-fedora-"${FEDORA_MAJOR_VERSION}".repo -O /etc/yum.repos.d/_copr_sentry-kernel-fsync.repo && \
# rpm-ostree cliwrap install-to-root / && \
# rpm-ostree override replace \
# --experimental \
# --from repo=copr:copr.fedorainfracloud.org:sentry:kernel-fsync \
# kernel-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
# kernel-core-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
# kernel-modules-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
# kernel-modules-core-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
# kernel-modules-extra-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64 \
# kernel-uki-virt-"${AKMODS_FLAVOR}".fc"${FEDORA_MAJOR_VERSION}".x86_64

# Setup firmware and asusctl for ASUS devices
RUN if [[ "${IMAGE_FLAVOR}" =~ "asus" ]]; then \
Expand Down Expand Up @@ -790,7 +788,7 @@ FROM bazzite as bazzite-nvidia
ARG IMAGE_NAME="${IMAGE_NAME:-bazzite-nvidia}"
ARG IMAGE_VENDOR="${IMAGE_VENDOR:-ublue-os}"
ARG IMAGE_FLAVOR="${IMAGE_FLAVOR:-nvidia}"
ARG AKMODS_FLAVOR="${AKMODS_FLAVOR:-fsync}"
ARG AKMODS_FLAVOR="${AKMODS_FLAVOR:-main}"
ARG IMAGE_BRANCH="${IMAGE_BRANCH:-main}"
ARG BASE_IMAGE_NAME="${BASE_IMAGE_NAME:-kinoite}"
ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION:-39}"
Expand Down

0 comments on commit 41b7470

Please sign in to comment.