From 9f1e8feabd814d2935177a2a0382d36f7199051b Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Thu, 11 Apr 2024 14:48:26 -0700 Subject: [PATCH] chore: Add scripts folder matching testing --- scripts/image-info.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 scripts/image-info.sh diff --git a/scripts/image-info.sh b/scripts/image-info.sh new file mode 100755 index 00000000..50640335 --- /dev/null +++ b/scripts/image-info.sh @@ -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 <