added builder script

This commit is contained in:
2024-07-25 12:20:36 -07:00
parent 6bf73092df
commit da629c05d8
24 changed files with 506 additions and 54 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Function to parse and handle the variable
extract_image_name() {
local dirty_img="$1"
if [[ "$dirty_img" == *\$* ]]; then
extracted_value=$(echo "$dirty_img" | sed -n 's/.*:-\([^}]*\)}.*/\1/p')
else
extracted_value=$dirty_img
fi
echo "$extracted_value"
}