Skip to content

Commit

Permalink
updated image-info.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Ogglord committed May 14, 2024
1 parent a3b760a commit 1dae24c
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions config/scripts/image-info.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
#!/usr/bin/bash
## This script is responsible for updating image-info.json with image details
## Its sourced in the motd by default

set -oue pipefail

FEDORA_MAJOR_VERSION="40"
IMAGE_VENDOR="ogglord"
IMAGE_NAME="birdie-os"
IMAGE_INFO="/usr/share/birdie-os/image-info.json"
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
IMAGE_REF="ostree-image-signed:docker://ghcr.io/$IMAGE_VENDOR/$IMAGE_NAME"
IMAGE_BRANCH_NORMALIZED="stable"

case $FEDORA_MAJOR_VERSION in
39|40)
IMAGE_TAG="stable"
;;
*)
IMAGE_TAG="$FEDORA_MAJOR_VERSION"
;;
esac
IMAGE_TAG="latest"
IMAGE_REPO="https://github.com/Ogglord/birdie"
# case $FEDORA_MAJOR_VERSION in
# 39|40)
# IMAGE_TAG="stable"
# ;;
# *)
# IMAGE_TAG="$FEDORA_MAJOR_VERSION"
# ;;
# esac

cat > $IMAGE_INFO <<EOF
{
Expand All @@ -26,6 +29,7 @@ cat > $IMAGE_INFO <<EOF
"image-ref": "$IMAGE_REF",
"image-tag": "$IMAGE_TAG",
"image-branch": "$IMAGE_BRANCH_NORMALIZED",
"image-repo": "$IMAGE_REPO",
"base-image-name": "Bazzite",
"fedora-version": "$FEDORA_MAJOR_VERSION"
}
Expand Down

0 comments on commit 1dae24c

Please sign in to comment.