ci(deploy): fix image cleanup and shorten notifications

This commit is contained in:
2026-07-09 15:58:10 +08:00
parent 48b74d1d62
commit ab63fe002f
2 changed files with 4 additions and 15 deletions
+2 -2
View File
@@ -57,11 +57,11 @@ prune_project_images() {
return 0
fi
local image_repo="${IMAGE%%:*}"
local image_repo="${IMAGE%:*}"
local image_tag="${IMAGE##*:}"
local tag_prefix="${image_tag%%-*}-"
if [ -z "$image_repo" ] || [ "$image_repo" = "$IMAGE" ] || [ -z "$tag_prefix" ]; then
if [ -z "$image_repo" ] || [ "$image_repo" = "$IMAGE" ] || [ -z "$image_tag" ] || [ "$image_tag" = "$IMAGE" ] || [ -z "$tag_prefix" ]; then
echo "Skip project image prune: could not parse image repo/tag from $IMAGE"
return 0
fi