Add lscr.io support to Docker update checker
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-05-16 17:28:06 +02:00
parent fdf616d5e8
commit 2a7801f430
2 changed files with 23 additions and 9 deletions
@@ -26,7 +26,8 @@ export function DockerUpdatesWidget() {
}, [])
const outdated = containers.filter(c => c.upToDate === false).length
const unknown = containers.filter(c => c.upToDate === null && c.registry !== 'docker.io' && c.registry !== 'ghcr.io').length
const knownRegistries = ['docker.io', 'ghcr.io', 'lscr.io']
const unknown = containers.filter(c => c.upToDate === null && !knownRegistries.includes(c.registry)).length
return (
<div className="card">
@@ -58,7 +59,7 @@ export function DockerUpdatesWidget() {
{c.image}:{c.tag.startsWith('sha256:') ? c.tag.slice(0, 15) + '…' : c.tag} · {c.endpoint}
</span>
</div>
{c.upToDate === null && c.registry !== 'docker.io' && c.registry !== 'ghcr.io' ? (
{c.upToDate === null && !knownRegistries.includes(c.registry) ? (
<span className="pill pill-blue">ext</span>
) : c.upToDate === true ? (
<span className="pill pill-green"></span>