1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

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

Signed-off-by: hackercat <me@hackerc.at>
This commit is contained in:
Ryan 2021-11-13 20:35:45 +01:00 committed by GitHub
parent 3b382dde40
commit c82cbd5b5b
2 changed files with 9 additions and 8 deletions

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"},