Skip to content

Commit bb0f5af

Browse files
committed
fix: temporarily revert the handling of images with :port
1 parent 1eaafe1 commit bb0f5af

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

docker-pussh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -368,17 +368,18 @@ if [[ -n "${SSH_KEY}" ]] && [[ ! -f "${SSH_KEY}" ]]; then
368368
fi
369369

370370
get_temp_image_name() {
371-
local image=$1
372-
local regex="^(.*:.*?\/)?(.*\/)?(.+)$"
373-
local repo_with_tag
374-
375-
if [[ ${image} =~ ${regex} ]]; then
376-
repo_with_tag=${BASH_REMATCH[3]}
377-
echo "${RANDOM}-${repo_with_tag}"
378-
return 0
379-
else
380-
error "Error parsing reference: ${image} is not a valid image reference."
381-
fi
371+
echo "$1"
372+
# local image=$1
373+
# local regex="^(.*:.*?\/)?(.*\/)?(.+)$"
374+
# local repo_with_tag
375+
#
376+
# if [[ ${image} =~ ${regex} ]]; then
377+
# repo_with_tag=${BASH_REMATCH[3]}
378+
# echo "${RANDOM}-${repo_with_tag}"
379+
# return 0
380+
# else
381+
# error "Error parsing reference: ${image} is not a valid image reference."
382+
# fi
382383
}
383384

384385
# Function to cleanup resources

0 commit comments

Comments
 (0)