From 65f602dc7aa44b7e43ac2f5f0225fccd9abb76b2 Mon Sep 17 00:00:00 2001 From: Kinara Shah Date: Wed, 24 Sep 2025 10:10:10 -0700 Subject: [PATCH] upload rke extended images list on tag --- scripts/create-imageslist.sh | 18 ++++++++++++++++++ scripts/package | 1 + 2 files changed, 19 insertions(+) create mode 100755 scripts/create-imageslist.sh diff --git a/scripts/create-imageslist.sh b/scripts/create-imageslist.sh new file mode 100755 index 00000000..a3b8b4c5 --- /dev/null +++ b/scripts/create-imageslist.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# This script will create a txt file with RKE extended life images. +set -e -x + +IMAGES_LIST_FILE="./build/bin/rke-extended-life-images.txt" + +# Ensure the build directory exists +mkdir -p ./build/bin + +echo "Creating ${IMAGES_LIST_FILE}" + +# The command to generate a unique list of sorted images after removing noiro/aci images. +./bin/rke config --system-images --all | grep -Eo '^[^ ]+/.+' | grep -v '^noiro/' | sort | uniq > "$IMAGES_LIST_FILE" + +echo "Done creating ${IMAGES_LIST_FILE}" + +# Display the content of the generated file +cat "$IMAGES_LIST_FILE" diff --git a/scripts/package b/scripts/package index 50d1d3bf..b51794a9 100755 --- a/scripts/package +++ b/scripts/package @@ -10,3 +10,4 @@ SUFFIX="" [ "${ARCH}" != "amd64" ] && SUFFIX="_${ARCH}" ./scripts/create-releasenote.sh +./scripts/create-imageslist.sh