Use one Docker Hub credential for images and the overview
CI / full-gate (push) Successful in 2m50s

This commit is contained in:
2026-08-22 14:27:31 +02:00
parent 734cdf6892
commit 42af07c255
3 changed files with 8 additions and 10 deletions
+4 -4
View File
@@ -49,11 +49,11 @@ async function main(): Promise<number> {
const [, , version] = process.argv;
const repo = process.env["DOCKERHUB_REPO"];
const user = process.env["DOCKERHUB_USER"];
const token = process.env["DOCKERHUB_OVERVIEW_TOKEN"];
const token = process.env["DOCKERHUB_TOKEN"];
if (!version || !repo || !user || !token) {
return fail(
"usage: dockerhub-overview.ts <X.Y.Z>; needs DOCKERHUB_REPO, DOCKERHUB_USER and " +
"DOCKERHUB_OVERVIEW_TOKEN (README -> CI/CD)",
"DOCKERHUB_TOKEN (README -> CI/CD)",
);
}
// The page is public, so never render a version that resolves to no image.
@@ -90,8 +90,8 @@ async function main(): Promise<number> {
return fail(
`Docker Hub overview PATCH failed: ${res.status} ${res.text}` +
(res.status === 403
? "\n403 means DOCKERHUB_OVERVIEW_TOKEN lacks the delete scope — editing the overview needs " +
"read/write/delete, which pushing images does not (README -> CI/CD)."
? "\n403 means DOCKERHUB_TOKEN lacks the delete scope — editing the overview needs " +
"read/write/delete, which pushing images alone does not (README -> CI/CD)."
: ""),
);
}