Skip to content

Commit

Permalink
Allow looking in the local docker for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
graveland committed Oct 10, 2024
1 parent 057a8b4 commit 3087aa2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fetch_tag_digest
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ if [ -z "$url" ]; then
exit 1
fi

if [[ "$url" =~ localhost:5000 ]]; then
docker inspect localhost:5000/ha:pg16-builder-arm64|jq -r '.[].Id'
exit $?
fi

registry=docker.io # default
tag="${url##*:}"
path="${url%%:$tag}"
Expand Down

0 comments on commit 3087aa2

Please sign in to comment.