Skip to content

feat(docker): sync the Docker Hub overview from the README, drop description/category - #3

Merged
DManavi merged 1 commit into
mainfrom
docs/dockerhub-overview
Aug 19, 2026
Merged

feat(docker): sync the Docker Hub overview from the README, drop description/category#3
DManavi merged 1 commit into
mainfrom
docs/dockerhub-overview

Conversation

@DManavi

@DManavi DManavi commented Aug 19, 2026

Copy link
Copy Markdown
Owner

What this does

  • Removes the description/category update entirely (per feedback: not something to change on every release).
  • Adds syncing the Docker Hub "Overview" (the full_description field, currently empty on the public repository page) from this repository's README.md, on every publish — the same way GHCR already shows a linked repository's README automatically.

Handling the size limit

README.md is ~64KB; Docker Hub caps full_description at 25,000 bytes. When it doesn't fit:

  • The content is cut to the last full line under the limit.
  • A note + link to the complete README on GitHub is placed ahead of the content, not only after it's already cut off partway through some unrelated section.
  • Any Markdown code fence left open by the cut is closed, so the rest doesn't render as unstyled text trapped inside it.

Verified locally against the real README: final size ~24,978 bytes, clean paragraph break after the notice, code fence correctly closed.

Re-confirmed the Docker Hub API issue from the last PR

Same endpoint as before (/v2/repositories/{repo} full_description), so I expected — and got — the same 403 access denied: insufficient scope on a live test run. This time, checking the live repository afterward, the write genuinely did not apply (full_description still empty) — unlike the earlier, apparently-flukey case with description/categories where it went through despite the same error. That confirms this really is blocked on DOCKERHUB_TOKEN's scope, not something to rely on working around.

Kept continue-on-error: true (a cosmetic overview sync must never fail the actual image publish) with the same clear error message pointing at the fix: reissue DOCKERHUB_TOKEN on Docker Hub with "Read, Write, Delete" scope. Once that's done, this starts working automatically on the next publish.

Merging this

Contains a feat commit, so merging will trigger a new release per the repo's automation.

…ription/category

Removed the description and category update entirely - not something to
change every time the code does. Replaced with syncing the README into
Docker Hub's full_description field (the "Overview" shown on the
repository's public page, currently empty), the same way GHCR already
shows a linked repository's README automatically.

README.md is bigger than Docker Hub's 25,000-byte full_description limit,
so when it doesn't fit, the content is cut to the last full line under the
limit with a note and a link to the complete README ahead of the content -
not only after it's already cut off partway through some unrelated
section - and any code fence left open by the cut is closed so the rest
doesn't render as unstyled text trapped inside it.

Keeps the continue-on-error handling from the previous description/category
attempt: the same endpoint, same insufficient-scope issue applies here too.
@DManavi
DManavi merged commit 8436b5d into main Aug 19, 2026
8 checks passed
@DManavi
DManavi deleted the docs/dockerhub-overview branch August 19, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant