Skip to content

Commit

Permalink
Avoid deuplicated registry in image name
Browse files Browse the repository at this point in the history
  • Loading branch information
whoan committed Dec 28, 2020
1 parent 128056d commit 4a89fbc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ _set_variables() {
service_name=$(_get_service_name_by_image_name "$image_name")

INPUT_IMAGE_NAME=${image_name%:*}
if [ "$INPUT_REGISTRY" ]; then
INPUT_IMAGE_NAME=${INPUT_IMAGE_NAME#$INPUT_REGISTRY/}
fi

INPUT_CONTEXT=$(_get_context_by_service_name "$service_name")
INPUT_CONTEXT=${INPUT_CONTEXT:-.}
Expand Down

0 comments on commit 4a89fbc

Please sign in to comment.