Skip to content

ops: station-bot CI/CD parity — GitHub Actions deploy pipeline with scoped secrets #157

@GitAddRemote

Description

@GitAddRemote

Tech Story

As a platform engineer, I want station-bot deployments to use the same automated CI/CD pipeline and secrets management pattern as Station, so that both services have a consistent, auditable, and secure deployment process.

Current state

Station-bot is deployed manually:

  1. SSH as deploy user
  2. `cd /opt/station-bot && docker compose -f docker-compose.prod.yml pull`
  3. Stop and restart services
  4. Run migrations if needed
  5. Check logs

Target state

Mirror the Station CI/CD pattern:

  • Release-tag triggered GitHub Actions workflow in the station-bot repo
  • SSH deploy step runs a `deploy-station-bot.sh` script on the VPS
  • Secrets stored in GitHub environment-scoped secrets (not repo-level)
  • Pre-deploy postgres backup before any migration run
  • Post-deploy health check and log tail
  • Deploy script committed to station-bot repo under `infra/scripts/`

Dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttech-storyTechnical implementation story

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions