Skip to content

ci: add CI/CD pipeline with tests, SSH deploy, and health checks#54

Open
madhyamakist wants to merge 2 commits into
mainfrom
ci/cicd-pipeline
Open

ci: add CI/CD pipeline with tests, SSH deploy, and health checks#54
madhyamakist wants to merge 2 commits into
mainfrom
ci/cicd-pipeline

Conversation

@madhyamakist

Copy link
Copy Markdown
Member

Changes

  • Test job: Postgres 16 service container, ruff lint, pytest
  • SSH-based deploy: Replaces VM stop/start to avoid downtime on shared staging VM
  • Health checks: Post-deploy curl to /health endpoint
  • Split secrets: Separate staging/production VM name and zone secrets
  • Documentation: CI_CD.md with pipeline overview, secrets, and rollback procedures

Deployment Architecture

  • staging branch -> staging-instance (port 5000)
  • main branch -> ai-agent-prod (port 5000)

Required Secrets

Secret Description
GCP_SA_KEY GCP service account JSON
GCP_PROJECT GCP project ID
GCP_VM_INSTANCE_NAME_STAGING staging-instance
GCP_ZONE_STAGING e.g. us-central1-f
GCP_VM_INSTANCE_NAME_PROD ai-agent-prod
GCP_ZONE_PROD e.g. us-central1-c

madhyamakist and others added 2 commits April 1, 2026 02:38
- Add test job with Postgres 16, ruff lint, and pytest
- Replace VM stop/start with SSH-based deploy (no downtime)
- Add post-deploy health checks
- Split staging/production secrets (zone, VM name)
- Add CI_CD.md documenting pipeline, secrets, and rollback
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