Skip to content

Commit 57906ae

Browse files
authored
Merge pull request #11 from shun-fix9/fix-list-images
fix list images
2 parents 4b1049c + 0f2f944 commit 57906ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/dockerfile-build-functions.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dockerfile_build_image(){
2222
mode=patch
2323
fi
2424
if [ -z "$last" ]; then
25-
last=$(docker images --format "{{.Tag}}" $repository | sort | tail -1)
25+
last=$(docker images --format "{{.Tag}}" $repository | head -1)
2626
fi
2727

2828
version_build_next "$mode" "$last"

0 commit comments

Comments
 (0)