Skip to content

Commit

Permalink
feat: Private cloud does not check whether the image exists
Browse files Browse the repository at this point in the history
  • Loading branch information
WGrape committed Jul 21, 2024
1 parent 233ab74 commit 4d273e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .work/include/internal/dockerhub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ cd $SPARROW_BASE_PATH

# search image
search() {
if ! [[ "${DOCKERHUB_REPO}" == *"docker.io"* ]]; then
print_warn "Private cloud does not check whether the image exists"
return 0
fi

search_image=$1
remove_prefix_search_image=$(echo "$search_image" | sed 's/^docker.io\///')
echo "search search_image=${search_image}, remove_prefix_search_image=${remove_prefix_search_image}"
Expand Down

0 comments on commit 4d273e1

Please sign in to comment.