Filter sha256-only containers, truncate long image tags
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
@@ -149,6 +149,10 @@ router.get('/docker', async (_req, res) => {
|
||||
// Skip ephemeral CI/pipeline containers
|
||||
if (containerName.startsWith('wp_')) continue
|
||||
|
||||
// Skip containers with no real name or image tag (sha256-only)
|
||||
const isShaTag = rawImage.startsWith('sha256:') || rawImage.includes('@sha256:') && !rawImage.includes(':')
|
||||
if (!containerName || isShaTag) continue
|
||||
|
||||
// Get repo digests via image inspect
|
||||
let repoDigest: string | null = null
|
||||
try {
|
||||
|
||||
@@ -55,7 +55,7 @@ export function DockerUpdatesWidget() {
|
||||
<div className="list-item-left" style={{ flexDirection: 'column', alignItems: 'flex-start', gap: 2 }}>
|
||||
<span>{c.name}</span>
|
||||
<span style={{ fontFamily: 'JetBrains Mono, monospace', fontSize: 10, color: 'var(--muted)' }}>
|
||||
{c.image}:{c.tag} · {c.endpoint}
|
||||
{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' ? (
|
||||
|
||||
Reference in New Issue
Block a user