Skip to content

ci(image): publish as ghcr.io/graphprotocol/docs - #1140

Closed
cjorge-thegraph wants to merge 1 commit into
mainfrom
ci/image-name-docs
Closed

cjorge-thegraph wants to merge 1 commit into
mainfrom
ci/image-name-docs

Conversation

@cjorge-thegraph

Copy link
Copy Markdown
Contributor

Fixes the image push that docs#1139 introduced. Main's first image.yml run (46486394663, commit 57cdfac) built the image and passed the runtime-environment check. Then docker push failed:

unexpected status from HEAD request to https://ghcr.io/v2/graphprotocol/graph-docs/blobs/sha256:5e94…: 403 Forbidden

Cause: ghcr.io/graphprotocol/graph-docs already exists. It is a private package created on 2021-06-18 and linked to no repository; its latest is a June 2021 build. This repository's GITHUB_TOKEN has no write access to it, so it cannot push there.

Change: the image takes the repository's name, ghcr.io/graphprotocol/docs, the way Studio's is subgraph-studio. That name has no package yet, so the first push from this repository creates it linked to graphprotocol/docs, with the repository's access, as graph-docs-staging was created. The rename covers IMAGE in image.yml, release.yml and ci-cd-pull-request.yml and the workflow comments. Nothing else changes.

The alternative is to keep graph-docs and have an org admin give this repository write access to the legacy package (package settings, Manage Actions access). That is a UI-only setting, and the 2021 versions would stay in the package.

graph-infra companion: graphprotocol/graph-infra#1148 now follows ghcr.io/graphprotocol/docs:latest.

Merge order

  1. This PR. Its main build pushes ghcr.io/graphprotocol/docs:<commit> and :latest.
  2. Check that the fleet pull credential (fleet-ghcr-pull), Kargo's registry credential (kargo-ghcr-read) and forge's node credential can read the new package.
  3. Set graph-infra#1148's pin to that first digest and merge it.
  4. Once staging runs the new image, graph-docs-staging can be deleted. The legacy graph-docs package is unused by this repository; deleting it is a separate decision.

Staging stays on its current graph-docs-staging image until step 3.

🤖 Generated with Claude Code

ghcr.io/graphprotocol/graph-docs is a 2021 package that no repository is
linked to, so this repository's GITHUB_TOKEN cannot write to it: main's
first image run (57cdfac) built and checked the image, then the push got
403 on a blob HEAD. The image takes the repository's name instead, a
package that does not exist yet, so the first push creates it linked to
this repository.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cjorge-thegraph

Copy link
Copy Markdown
Contributor Author

Closed: the owner fixes the legacy ghcr.io/graphprotocol/graph-docs package's access instead of renaming the image.

@cjorge-thegraph
cjorge-thegraph deleted the ci/image-name-docs branch November 30, 2026 18:47
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.

2 participants