2023-09-22 11:19:14 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -oue pipefail
|
|
|
|
|
2023-09-22 15:32:34 -06:00
|
|
|
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
2023-09-24 06:13:36 +00:00
|
|
|
IMAGE_REF="ostree-image-signed:docker://ghcr.io/$IMAGE_VENDOR/$IMAGE_NAME"
|
2023-09-22 11:19:14 -06:00
|
|
|
|
|
|
|
case $FEDORA_MAJOR_VERSION in
|
|
|
|
38)
|
|
|
|
IMAGE_TAG="latest"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
IMAGE_TAG="$FEDORA_MAJOR_VERSION"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2023-09-22 15:32:34 -06:00
|
|
|
cat > $IMAGE_INFO <<EOF
|
2023-09-22 11:19:14 -06:00
|
|
|
{
|
2023-09-22 15:32:34 -06:00
|
|
|
"image-name": "$IMAGE_NAME",
|
|
|
|
"image-flavor": "$IMAGE_FLAVOR",
|
|
|
|
"image-vendor": "$IMAGE_VENDOR",
|
|
|
|
"image-ref": "$IMAGE_REF",
|
2023-09-22 22:47:15 -06:00
|
|
|
"image-tag": "$IMAGE_TAG",
|
2023-09-22 15:32:34 -06:00
|
|
|
"base-image-name": "$BASE_IMAGE_NAME",
|
|
|
|
"fedora-version": "$FEDORA_MAJOR_VERSION"
|
|
|
|
}
|
|
|
|
EOF
|