Skip to content

ci(staging): build and push the staging image only - #1137

Merged
cjorge-thegraph merged 1 commit into
mainfrom
ci/staging-build-only
Nov 30, 2026
Merged

cjorge-thegraph merged 1 commit into
mainfrom
ci/staging-build-only

Conversation

@cjorge-thegraph

Copy link
Copy Markdown
Contributor

What changes

ci-cd-staging.yml builds and pushes the staging image only:

  • The deploy job is gone: no GCP login, no get-gke-credentials for hosted-service (the-graph-staging), no kustomize-apply.sh, rollout wait or endpoint check.
  • ghcr.io/graphprotocol/graph-docs-staging:<sha> is pushed on every run; :latest only when the run is on the default branch (a workflow_dispatch from another branch pushes the commit tag only).
  • The workflow's token is scoped to actions: write (for cancel-workflow-action), contents: read and packages: write.

Pull requests keep building without pushing (ci-cd-pull-request.yml, unchanged). ci-cd-production.yml, .github/scripts/ and .k8s/ are unchanged: production still deploys to the production GKE cluster on v* tags.

How staging is delivered

Staging (staging.thegraph.com/docs) runs on stg-apps-us-central1, delivered by Argo CD and Kargo from graphprotocol/graph-infra (templates/apps/docs). Kargo's Warehouse follows graph-docs-staging:latest; for each new digest it opens a graph-infra pull request that pins it in templates/apps/docs/base/image/kustomization.yaml, and merging that pull request promotes it.

For the owner to check

  • The staging workflow no longer uses GCP_THE_GRAPH_STAGING; nothing else in this repository does.
  • .k8s/staging is no longer applied by any workflow.

🤖 Generated with Claude Code

Staging runs on stg-apps-us-central1, delivered by Argo CD and Kargo from
graphprotocol/graph-infra, which follows graph-docs-staging:latest. The
staging workflow no longer deploys to the hosted-service GKE cluster: it
builds and pushes the image, and moves latest only for the default branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cjorge-thegraph
cjorge-thegraph marked this pull request as ready for review November 30, 2026 17:33
@cjorge-thegraph
cjorge-thegraph merged commit 95313c2 into main Nov 30, 2026
4 checks passed
@cjorge-thegraph
cjorge-thegraph deleted the ci/staging-build-only branch November 30, 2026 17:33
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