Skip to content

Commit 65f602d

Browse files
committed
upload rke extended images list on tag
1 parent e97ed81 commit 65f602d

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

scripts/create-imageslist.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
# This script will create a txt file with RKE extended life images.
3+
set -e -x
4+
5+
IMAGES_LIST_FILE="./build/bin/rke-extended-life-images.txt"
6+
7+
# Ensure the build directory exists
8+
mkdir -p ./build/bin
9+
10+
echo "Creating ${IMAGES_LIST_FILE}"
11+
12+
# The command to generate a unique list of sorted images after removing noiro/aci images.
13+
./bin/rke config --system-images --all | grep -Eo '^[^ ]+/.+' | grep -v '^noiro/' | sort | uniq > "$IMAGES_LIST_FILE"
14+
15+
echo "Done creating ${IMAGES_LIST_FILE}"
16+
17+
# Display the content of the generated file
18+
cat "$IMAGES_LIST_FILE"

scripts/package

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ SUFFIX=""
1010
[ "${ARCH}" != "amd64" ] && SUFFIX="_${ARCH}"
1111

1212
./scripts/create-releasenote.sh
13+
./scripts/create-imageslist.sh

0 commit comments

Comments
 (0)