fix: use docker lib for image ref parsing (#877)

Signed-off-by: hackercat <[email protected]>
This commit is contained in:
Ryan authored and GitHub committed 2021-11-13 19:35:45 +00:00
1 parent 62d2167f3b
commit ec34eb9532
3 files changed
+10 -8

No files matched your search

+3
View File
@@ -18,6 +18,9 @@ func TestCleanImage(t *testing.T) {
imageOut string
}{
{"myhost.com/foo/bar", "myhost.com/foo/bar"},
{"localhost:8000/canonical/ubuntu", "localhost:8000/canonical/ubuntu"},
{"localhost/canonical/ubuntu:latest", "localhost/canonical/ubuntu:latest"},
{"localhost:8000/canonical/ubuntu:latest", "localhost:8000/canonical/ubuntu:latest"},
{"ubuntu", "docker.io/library/ubuntu"},
{"ubuntu:18.04", "docker.io/library/ubuntu:18.04"},
{"cibuilds/hugo:0.53", "docker.io/cibuilds/hugo:0.53"},