mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-30 03:32:36 +00:00
chore: Add scripts folder matching testing
This commit is contained in:
parent
26cf4cca32
commit
9f1e8feabd
28
scripts/image-info.sh
Executable file
28
scripts/image-info.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/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
|
Loading…
x
Reference in New Issue
Block a user