ci(deploy): fix image cleanup and shorten notifications
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user