Skip to content

Commit f68c505

Browse files
committed
add latest
Signed-off-by: cuisongliu <[email protected]>
1 parent 3b9a2e9 commit f68c505

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dockerhub/repos.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ func fetchDockerHubAllRepo() (map[string]RepoInfoList, error) {
7878
},
7979
ByTagRegex: true,
8080
}
81+
versions[fmt.Sprintf("%s-%s", repo.Name, "latest")] = RepoInfoList{
82+
Repos: []RepoInfo{
83+
{Name: repo.Name, Versions: []string{"latest"}},
84+
},
85+
ByTagRegex: false,
86+
}
8187
}
8288
//logger.Warn("sealos container image repo is deprecated, please use sealos cloud repo")
8389
} else if strings.HasPrefix(repo.Name, "laf") {
@@ -87,6 +93,12 @@ func fetchDockerHubAllRepo() (map[string]RepoInfoList, error) {
8793
},
8894
ByTagRegex: true,
8995
}
96+
versions[fmt.Sprintf("%s-%s", repo.Name, "latest")] = RepoInfoList{
97+
Repos: []RepoInfo{
98+
{Name: repo.Name, Versions: []string{"latest"}},
99+
},
100+
ByTagRegex: false,
101+
}
90102
} else {
91103
newRepos = append(newRepos, RepoInfo{Name: repo.Name})
92104
}

0 commit comments

Comments
 (0)