* refactor(ci): retry image pull/push, fix oci labels
This is now a single place in the build workflow where kernel_version
can be specified to pull the desired akmods image (assuming it was build
and tagged correctly) which also impacts the rest of the workflow and
the Containerfile logic for replacing kernel, or not replacing kernel.
This is the new `kernel_flavor` include in the matrix configuration.
Current valid values would be: main, fsync, or fsync-lts
other included changes:
- pre-pull source images before building (makes building more reliable)
- add retry action for image push/pulls (makes building more reliable)
- rename FEDORA_MAJOR_VERSION/major_version to FEDORA_VERSION/fedora_version
(in matrix vars) (this is easier to read)
- read kernel version from akmods image and use to populate ostree.linux
label on the built images (ostree image version is inherited)
- remove some redundant workflow env vars where matrix vars exist
* refactor(ci): remove extraneous excludes
* refactor(ci): inherit image.version, use KERNEL_VERSION for ostree.linux
* refactor(ci): fix env var definition
* refactor(ci): fix trailing double ampersand add echo
* refactor(ci): correct AKMODS_FLAVOR reference
* refactor(ci): target_image_flavor instead of base_image_flavor
* chore: always cliwrap install kernel section
* refactor(ci): revert FEDORA_MAJOR_VERSION for Containerfile
Sets a variable with for the specific kernel being installed and uses
that both to select the desired AKMODS layer and set the ostree.linux
image label as appropriate.
This ensures that when inspecting upstream image, if an error occurs, or
the resulting value is empty or 'null', we fail our build instead of
propegating a bogus version downstream.
Relates: https://github.com/ublue-os/main/issues/487
* feat(ci): Introduce a stable tag
The "stable" and "latest" tags are equivalent. Given "testing" and "unstable"
tags are used, users may likewise figure that the current stable release uses
the "stable" tag
* chore(image-info): Use stable tag
This will rebase to stable on freshly installed images
* chore(os-branch-select): Support stable tag
* chore(readme): Use :stable instead of :latest
---------
Co-authored-by: Kyle Gospodnetich <me@kylegospodneti.ch>