Repository navigation
ci: remove the legacy hosted-service deployment - #1144
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge any time now. Production is served from
prd-apps-us-central1via Kargo; until this merges, av*tag also rebuilds the legacygraph-docs-productionimage and applies it to the legacyhosted-servicecluster (scaled to 0, kept for rollback), bringing legacy pods back.Current state
image.ymlbuildsghcr.io/graphprotocol/graph-docs(one image for every environment) on eachmainbuild:<commit>, andlatestforward only. Staging (stg-apps-us-central1) followslatest.release.ymlgives av*tag of a commit onmainthe image tag of the same name, the digestmainbuilt (no rebuild). Production (prd-apps-us-central1) follows thevX.Y.Ztags.ci-cd-production.ymladditionally buildsgraph-docs-productionwith production's values andkubectl applys it tohosted-serviceon everyv*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)..github/scripts/kustomize-apply.sh,kubectl-wait-ready.sh,npx-wait-on/..k8s/(base, staging and production overlays forhosted-service, with theirauth.sh): graph-infra defines both deployments now..terraform/: thegraph-docs-ci-cdservice accounts (roles/container.developerinthe-graph-stagingandthe-graph-production) whose keys CI used to deploy, state in Terraform Cloud workspaceedgeandnode/tf-state-graph-docs. Removing the config deletes nothing in GCP..k8sand.terraformlines 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/docsfollowsghcr.io/graphprotocol/graph-docs:latestfor staging, and the tags matching^v[0-9]+\.[0-9]+\.[0-9]+$for releases (delivery README, Releases).vX.Y.Ztag pushed here gets its image tag from the release job (the digestmainbuilt for that commit).cd(docs): pin release ghcr.io/graphprotocol/graph-docs:vX.Y.Z, which it merges once its checks pass.releasepipeline takes it tostgand, once Healthy there, opens theprdpromotion; the prd leaf isgate: auto, so Kargo merges that too.v*tags (e.g.-rc.N) get an image tag but are not followed.Secrets to delete (owner)
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.GCP_SA_KEY_PRODUCTION,GCP_SA_KEY_STAGING(thegraph-docs-ci-cdkeys from.terraform) andGH_ACCESS_TOKEN: already referenced by no workflow onmain.graph-docs-ci-cdservice accounts and their keys inthe-graph-staging/the-graph-production(and the TFC workspace), if nothing else uses them.Overlap with #1143
#1143 (merged as ba0fe90) touched
image.ymlandrelease.yml; this is based on it and changes only their header comments.🤖 Generated with Claude Code