mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-27 21:35:24 +00:00
c5a69faba7
* 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>
29 lines
597 B
Bash
Executable File
29 lines
597 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
set -oue pipefail
|
|
|
|
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
|
IMAGE_REF="ostree-image-signed:docker://ghcr.io/$IMAGE_VENDOR/$IMAGE_NAME"
|
|
|
|
case $FEDORA_MAJOR_VERSION in
|
|
38|39)
|
|
IMAGE_TAG="stable"
|
|
;;
|
|
*)
|
|
IMAGE_TAG="$FEDORA_MAJOR_VERSION"
|
|
;;
|
|
esac
|
|
|
|
cat > $IMAGE_INFO <<EOF
|
|
{
|
|
"image-name": "$IMAGE_NAME",
|
|
"image-flavor": "$IMAGE_FLAVOR",
|
|
"image-vendor": "$IMAGE_VENDOR",
|
|
"image-ref": "$IMAGE_REF",
|
|
"image-tag": "$IMAGE_TAG",
|
|
"image-branch": "$IMAGE_BRANCH",
|
|
"base-image-name": "$BASE_IMAGE_NAME",
|
|
"fedora-version": "$FEDORA_MAJOR_VERSION"
|
|
}
|
|
EOF
|