lscr.io is a mirror of ghcr.io — same manifests and auth service. Using the ghcr.io token flow (with GITHUB_TOKEN) is reliable; calling the lscr.io token endpoint with service=lscr.io silently fails.
This commit is contained in:
@@ -188,7 +188,8 @@ router.get('/docker', async (_req, res) => {
|
|||||||
const latest = await getGhcrLatestDigest(name, tag)
|
const latest = await getGhcrLatestDigest(name, tag)
|
||||||
if (latest) upToDate = latest === repoDigest
|
if (latest) upToDate = latest === repoDigest
|
||||||
} else if (isLscr && repoDigest) {
|
} else if (isLscr && repoDigest) {
|
||||||
const latest = await getLscrLatestDigest(name, tag)
|
// lscr.io is a mirror of ghcr.io — same manifests, same digests, same auth
|
||||||
|
const latest = await getGhcrLatestDigest(name, tag)
|
||||||
if (latest) upToDate = latest === repoDigest
|
if (latest) upToDate = latest === repoDigest
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user