Skip to content

ci: remove the legacy hosted-service deployment - #1144

Merged
cjorge-thegraph merged 1 commit into
mainfrom
ci/remove-legacy-deploy
Dec 1, 2026
Merged

cjorge-thegraph merged 1 commit into
mainfrom
ci/remove-legacy-deploy

Conversation

@cjorge-thegraph

Copy link
Copy Markdown
Contributor

Merge any time now. Production is served from prd-apps-us-central1 via Kargo; until this merges, a v* tag also rebuilds the legacy graph-docs-production image and applies it to the legacy hosted-service cluster (scaled to 0, kept for rollback), bringing legacy pods back.

Current state

  • image.yml builds ghcr.io/graphprotocol/graph-docs (one image for every environment) on each main build: <commit>, and latest forward only. Staging (stg-apps-us-central1) follows latest.
  • release.yml gives a v* tag of a commit on main the image tag of the same name, the digest main built (no rebuild). Production (prd-apps-us-central1) follows the vX.Y.Z tags.
  • ci-cd-production.yml additionally builds graph-docs-production with production's values and kubectl applys it to hosted-service on every v* tag.

Removed

  • .github/workflows/ci-cd-production.yml (build of the legacy environment-baked image, GKE credentials, kustomize apply, rollout wait, health check against legacy).
  • The scripts only it ran: .github/scripts/kustomize-apply.sh, kubectl-wait-ready.sh, npx-wait-on/.
  • .k8s/ (base, staging and production overlays for hosted-service, with their auth.sh): graph-infra defines both deployments now.
  • .terraform/: the graph-docs-ci-cd service accounts (roles/container.developer in the-graph-staging and the-graph-production) whose keys CI used to deploy, state in Terraform Cloud workspace edgeandnode/tf-state-graph-docs. Removing the config deletes nothing in GCP.
  • .k8s and .terraform lines in .dockerignore.

Kept

image.yml, release.yml (both unchanged but for comments describing the delivery), the PR checks, opengraph.yml (Cloudflare Worker), website-integrity.yml, rerun.yml.

What Kargo does on a release (graphprotocol/graph-infra)

templates/apps/docs follows ghcr.io/graphprotocol/graph-docs: latest for staging, and the tags matching ^v[0-9]+\.[0-9]+\.[0-9]+$ for releases (delivery README, Releases).

  • A vX.Y.Z tag pushed here gets its image tag from the release job (the digest main built for that commit).
  • Kargo sees the newest version and opens cd(docs): pin release ghcr.io/graphprotocol/graph-docs:vX.Y.Z, which it merges once its checks pass.
  • The template's release pipeline takes it to stg and, once Healthy there, opens the prd promotion; the prd leaf is gate: auto, so Kargo merges that too.
  • Other v* tags (e.g. -rc.N) get an image tag but are not followed.

Secrets to delete (owner)

  • Org secret GCP_THE_GRAPH_PRODUCTION (visibility: all repositories): no longer used here. graph-explorer-x's testnet deploy still uses it, so it cannot be deleted yet; it can be scoped away from this repo.
  • Repo secrets GCP_SA_KEY_PRODUCTION, GCP_SA_KEY_STAGING (the graph-docs-ci-cd keys from .terraform) and GH_ACCESS_TOKEN: already referenced by no workflow on main.
  • Outside GitHub: the graph-docs-ci-cd service accounts and their keys in the-graph-staging / the-graph-production (and the TFC workspace), if nothing else uses them.

Overlap with #1143

#1143 (merged as ba0fe90) touched image.yml and release.yml; this is based on it and changes only their header comments.

🤖 Generated with Claude Code

Production runs on prd-apps-us-central1, delivered by Kargo from the
vX.Y.Z image tags that release.yml gives a commit's image
(graphprotocol/graph-infra, templates/apps/docs). CI now only builds:

- Remove ci-cd-production.yml, which on v* tags built the
  environment-baked graph-docs-production image and applied it to the
  hosted-service cluster with the GCP_THE_GRAPH_PRODUCTION key, and the
  scripts only it ran (kustomize-apply.sh, kubectl-wait-ready.sh,
  npx-wait-on/).
- Remove the .k8s overlays for hosted-service and .terraform, which
  defined the graph-docs-ci-cd service accounts whose keys CI used to
  deploy there.
- The image and release workflows' comments describe the delivery.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cjorge-thegraph
cjorge-thegraph marked this pull request as ready for review December 1, 2026 20:30
@cjorge-thegraph
cjorge-thegraph merged commit 96d32e6 into main Dec 1, 2026
4 checks passed
@cjorge-thegraph
cjorge-thegraph deleted the ci/remove-legacy-deploy branch December 1, 2026 20:30
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