mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 14:31:47 +01:00
Add Hublink for GitHub Container Registry (#211)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -101,6 +101,28 @@ func TestParseImage(t *testing.T) {
|
||||
Tag: "latest",
|
||||
},
|
||||
},
|
||||
{
|
||||
desc: "ghcr ddns-route53",
|
||||
parseOpts: registry.ParseImageOptions{
|
||||
Name: "ghcr.io/crazy-max/ddns-route53",
|
||||
},
|
||||
expected: registry.Image{
|
||||
Domain: "ghcr.io",
|
||||
Path: "crazy-max/ddns-route53",
|
||||
Tag: "latest",
|
||||
},
|
||||
},
|
||||
{
|
||||
desc: "ghcr radarr",
|
||||
parseOpts: registry.ParseImageOptions{
|
||||
Name: "ghcr.io/linuxserver/radarr",
|
||||
},
|
||||
expected: registry.Image{
|
||||
Domain: "ghcr.io",
|
||||
Path: "linuxserver/radarr",
|
||||
Tag: "latest",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range testCases {
|
||||
@@ -185,6 +207,20 @@ func TestHubLink(t *testing.T) {
|
||||
},
|
||||
expected: "https://quay.io/repository/coreos/hyperkube",
|
||||
},
|
||||
{
|
||||
desc: "ghcr ddns-route53",
|
||||
parseOpts: registry.ParseImageOptions{
|
||||
Name: "ghcr.io/crazy-max/ddns-route53",
|
||||
},
|
||||
expected: "https://github.com/users/crazy-max/packages/container/package/ddns-route53",
|
||||
},
|
||||
{
|
||||
desc: "ghcr radarr",
|
||||
parseOpts: registry.ParseImageOptions{
|
||||
Name: "ghcr.io/linuxserver/radarr",
|
||||
},
|
||||
expected: "https://github.com/users/linuxserver/packages/container/package/radarr",
|
||||
},
|
||||
{
|
||||
desc: "redhat etcd",
|
||||
parseOpts: registry.ParseImageOptions{
|
||||
|
||||
Reference in New Issue
Block a user