forked from ublue-os/hwe
-
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.
feat: Use cached kernel (ublue-os#265)
* feat: Use cached kerneel feat: Used cached-kernel * fix: include repos * fix: typo, have sbverify test * fix: work on surface install * fix: surface is annoying * fix: surface package name * fix: get surface installing * fix: get surface installing * fix: another surface try * fix: surface, install from repo, replace vmlinuz * fix: more surface changes * chore(ci): Another iteration * chore: annother attempt * chore: another attempt * chore: again * fix: maybe closer? * closer * another attempt * more changes * missing variable * try combining into one block * spelling * consolidate * spelling * remove debug
- Loading branch information
Showing
3 changed files
with
49 additions
and
35 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ on: | |
workflow_call: | ||
inputs: | ||
fedora_version: | ||
description: 'The Fedora release version: 39, 40, etc' | ||
description: "The Fedora release version: 39, 40, etc" | ||
required: true | ||
type: string | ||
env: | ||
|
@@ -161,17 +161,6 @@ jobs: | |
containers: akmods-nvidia:${{ matrix.kernel_flavor}}-${{ matrix.fedora_version }} | ||
registry: ${{ env.IMAGE_REGISTRY }} | ||
|
||
- name: Pull main and akmods-nvidia images | ||
uses: Wandalen/[email protected] | ||
with: | ||
attempt_limit: 3 | ||
attempt_delay: 15000 | ||
command: | | ||
# pull the base image used for FROM in containerfile so | ||
# we can retry on that unfortunately common failure case | ||
podman pull ${{ env.IMAGE_REGISTRY }}/${{ env.SOURCE_IMAGE }}:${{ matrix.fedora_version }} | ||
podman pull ${{ env.IMAGE_REGISTRY }}/akmods-nvidia:${{ matrix.kernel_flavor }}-${{ matrix.fedora_version }} | ||
- name: Get current version | ||
id: labels | ||
uses: Wandalen/[email protected] | ||
|
@@ -187,15 +176,26 @@ jobs: | |
exit 1 | ||
fi | ||
echo "SOURCE_IMAGE_VERSION=$ver" >> $GITHUB_ENV | ||
skopeo inspect docker://${{ env.IMAGE_REGISTRY }}/akmods-nvidia:${{ matrix.kernel_flavor }}-${{ matrix.fedora_version }} > akmods.json | ||
linux=$(jq -r '.Labels["ostree.linux"]' akmods.json) | ||
skopeo inspect docker://${{ env.IMAGE_REGISTRY }}/${{ matrix.kernel_flavor }}-kernel:${{ matrix.fedora_version }} > kernel.json | ||
linux=$(jq -r '.Labels["ostree.linux"]' kernel.json) | ||
if [ -z "$linux" ] || [ "null" = "$linux" ]; then | ||
echo "inspected image linux version must not be empty or null" | ||
exit 1 | ||
fi | ||
echo "KERNEL_VERSION=$linux" >> $GITHUB_ENV | ||
- name: Pull main and akmods-nvidia images | ||
uses: Wandalen/[email protected] | ||
with: | ||
attempt_limit: 3 | ||
attempt_delay: 15000 | ||
command: | | ||
# pull the base image used for FROM in containerfile so | ||
# we can retry on that unfortunately common failure case | ||
podman pull ${{ env.IMAGE_REGISTRY }}/${{ env.SOURCE_IMAGE }}:${{ matrix.fedora_version }} | ||
podman pull ${{ env.IMAGE_REGISTRY }}/akmods-nvidia:${{ matrix.kernel_flavor }}-${{ matrix.fedora_version }} | ||
podman pull ${{ env.IMAGE_REGISTRY }}/${{ matrix.kernel_flavor}}-kernel:${{ env.KERNEL_VERSION }} | ||
# Build metadata | ||
- name: Image Metadata | ||
uses: docker/metadata-action@v5 | ||
|
@@ -226,6 +226,7 @@ jobs: | |
SOURCE_IMAGE=${{ env.SOURCE_IMAGE }} | ||
FEDORA_MAJOR_VERSION=${{ matrix.fedora_version }} | ||
KERNEL_FLAVOR=${{ matrix.kernel_flavor }} | ||
KERNEL_VERSION=${{ env.KERNEL_VERSION }} | ||
RPMFUSION_MIRROR=${{ vars.RPMFUSION_MIRROR }} | ||
labels: ${{ steps.meta.outputs.labels }} | ||
oci: false | ||
|
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