优化配置

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
Meng Sen
2025-05-28 12:10:20 +08:00
parent 1ea47f329c
commit 136b4746c2

View File

@@ -44,6 +44,10 @@ process_image() {
# Match date version # Match date version
date_version=$(echo "$trimmed_version" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}') date_version=$(echo "$trimmed_version" | grep -oE '[0-9]{4}-[0-9]{2}-[0-9]{2}')
if [[ -n "$date_version" ]]; then if [[ -n "$date_version" ]]; then
if [[ "$old_version" == "$date_version" ]]; then
echo "Skipping $app_name:$old_version"
return
fi
if [[ "$found_alpine" == true ]]; then if [[ "$found_alpine" == true ]]; then
cleaned_version="$date_version-alpine" cleaned_version="$date_version-alpine"
echo "Date alpine version: $date_version" echo "Date alpine version: $date_version"
@@ -57,6 +61,10 @@ process_image() {
# Match date version # Match date version
date_version=$(echo "$trimmed_version" | grep -oE '[0-9]{2}-[0-9]{2}-[0-9]{2}') date_version=$(echo "$trimmed_version" | grep -oE '[0-9]{2}-[0-9]{2}-[0-9]{2}')
if [[ -n "$date_version" ]]; then if [[ -n "$date_version" ]]; then
if [[ "$old_version" == "$date_version" ]]; then
echo "Skipping $app_name:$old_version"
return
fi
if [[ "$found_alpine" == true ]]; then if [[ "$found_alpine" == true ]]; then
cleaned_version="$date_version-alpine" cleaned_version="$date_version-alpine"
echo "Mini Date alpine version: $date_version" echo "Mini Date alpine version: $date_version"
@@ -70,6 +78,10 @@ process_image() {
# Match number version # Match number version
number_version=$(echo "$trimmed_version" | grep -oE '[0-9]+(\.[0-9]+){0,3}' | head -n1) number_version=$(echo "$trimmed_version" | grep -oE '[0-9]+(\.[0-9]+){0,3}' | head -n1)
if [[ -n "$number_version" ]]; then if [[ -n "$number_version" ]]; then
if [[ "$old_version" == "$number_version" ]]; then
echo "Skipping $app_name:$old_version"
return
fi
if [[ "$found_alpine" == true ]]; then if [[ "$found_alpine" == true ]]; then
cleaned_version="$number_version-alpine" cleaned_version="$number_version-alpine"
echo "Number alpine version: $number_version" echo "Number alpine version: $number_version"