Skip to content

feat: add GoCD pipeline for auto-deploy on push to master#16

Merged
BYK merged 2 commits intomasterfrom
byk/deploy-on-push
Mar 9, 2026
Merged

feat: add GoCD pipeline for auto-deploy on push to master#16
BYK merged 2 commits intomasterfrom
byk/deploy-on-push

Conversation

@BYK
Copy link
Member

@BYK BYK commented Mar 6, 2026

Summary

Adds GoCD pipeline templates following the seer pattern for auto-deploy on push to master.

What's added

  • gocd/templates/orbital.jsonnet — pipedream config with auto_deploy: true, materials watching sentry-orbital master, US-only deploy (exclude_regions for all non-US regions)
  • gocd/templates/pipelines/orbital.libsonnet — 2-stage pipeline: check GH Actions → deploy
  • gocd/templates/bash/check-github.sh — verifies 'Build and smoke test' job passed for the commit
  • gocd/templates/bash/deploy.shk8s-deploy with ghcr.io/getsentry/sentry-orbital:${GO_REVISION_ORBITAL_REPO}
  • gocd/templates/jsonnetfile.json + lock — gocd-jsonnet v2.19.0

Deploy flow

push to master
  → GH Actions builds & pushes :nightly + :sha to GHCR
  → GoCD detects new commit on master (auto_deploy: true)
  → checks stage: waits for 'Build and smoke test' GH Actions job to pass
  → deploy-primary stage: k8s-deploy with image tagged by commit SHA

Companion PRs

  • devinfra-deployment-service: update orbital-k8s deploy-config to point at sentry-orbital repo (PR forthcoming)
  • ops: remove the old orbital-k8s.jsonnet + GH Actions workflow (PR forthcoming)

Adds GoCD pipeline templates following the seer pattern:
- orbital.jsonnet: pipedream config with auto_deploy: true,
  materials watching sentry-orbital master, US-only regions
- pipelines/orbital.libsonnet: check GH Actions build → k8s-deploy
- bash/check-github.sh: verify 'Build and smoke test' passed
- bash/deploy.sh: k8s-deploy with GHCR image tagged by commit SHA

On push to master, GoCD will:
1. Wait for GH Actions build to pass
2. Deploy ghcr.io/getsentry/sentry-orbital:<sha> to US k8s

Requires companion changes:
- devinfra-deployment-service: update orbital-k8s deploy-config to
  point at sentry-orbital repo
- ops: remove the old orbital-k8s.jsonnet (now lives here)
@BYK BYK force-pushed the byk/deploy-on-push branch from a936eb7 to d1bda64 Compare March 9, 2026 16:12
@BYK BYK changed the title feat: trigger deploy to k8s after image push feat: add GoCD pipeline for auto-deploy on push to master Mar 9, 2026
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@BYK BYK merged commit 4d91135 into master Mar 9, 2026
5 checks passed
@BYK BYK deleted the byk/deploy-on-push branch March 9, 2026 19:50
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