Filter sha256-only containers, truncate long image tags
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-05-16 17:18:57 +02:00
parent c50f5eb3ee
commit 67a8df72aa
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -149,6 +149,10 @@ router.get('/docker', async (_req, res) => {
// Skip ephemeral CI/pipeline containers // Skip ephemeral CI/pipeline containers
if (containerName.startsWith('wp_')) continue 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 // Get repo digests via image inspect
let repoDigest: string | null = null let repoDigest: string | null = null
try { try {
@@ -55,7 +55,7 @@ export function DockerUpdatesWidget() {
<div className="list-item-left" style={{ flexDirection: 'column', alignItems: 'flex-start', gap: 2 }}> <div className="list-item-left" style={{ flexDirection: 'column', alignItems: 'flex-start', gap: 2 }}>
<span>{c.name}</span> <span>{c.name}</span>
<span style={{ fontFamily: 'JetBrains Mono, monospace', fontSize: 10, color: 'var(--muted)' }}> <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> </span>
</div> </div>
{c.upToDate === null && c.registry !== 'docker.io' && c.registry !== 'ghcr.io' ? ( {c.upToDate === null && c.registry !== 'docker.io' && c.registry !== 'ghcr.io' ? (