fix: cleanup old image refs

This commit is contained in:
Nerivec
2026-01-26 18:02:57 +01:00
parent dd3d646eef
commit 86125d9532
5 changed files with 24 additions and 44 deletions
+23
View File
@@ -0,0 +1,23 @@
import {existsSync} from "node:fs";
import {join} from "node:path";
import {BASE_INDEX_MANIFEST_FILENAME, BASE_REPO_URL, PREV_INDEX_MANIFEST_FILENAME, REPO_BRANCH, readManifest} from "./common";
const baseManifest = readManifest(BASE_INDEX_MANIFEST_FILENAME);
for (const meta of baseManifest) {
const filePath = decodeURIComponent(meta.url.replace(BASE_REPO_URL + REPO_BRANCH, ""));
if (!existsSync(join(".", filePath))) {
console.error(`BASE MISSING: ${filePath}`);
}
}
const prevManifest = readManifest(PREV_INDEX_MANIFEST_FILENAME);
for (const meta of prevManifest) {
const filePath = decodeURIComponent(meta.url.replace(BASE_REPO_URL + REPO_BRANCH, ""));
if (!existsSync(join(".", filePath))) {
console.error(`PREV MISSING: ${filePath}`);
}
}
+1 -1
View File
@@ -182,7 +182,7 @@ export function identifyStacks(_github: Octokit, core: typeof CoreApi, _context:
break;
}
core.info(`UNKNOWN ${filePath} tagId=${tagId} firstBytes=${data.subarray(0, 16).toString("hex")}`);
// core.info(`UNKNOWN ${filePath} tagId=${tagId} firstBytes=${data.subarray(0, 16).toString("hex")}`);
}
if (stack === "Unknown") {