Skip to content

feat(infra): update the deployment script - #163

Open
Ayush8923 wants to merge 13 commits into
mainfrom
feat/deployment-script-updates
Open

Ayush8923 wants to merge 13 commits into
mainfrom
feat/deployment-script-updates

Conversation

@Ayush8923

@Ayush8923 Ayush8923 commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Staging Deployment Script

  • Starts when Kaapi Guardrails CI finishes on main, not on every push.
  • Deploys only when CI passed on a push to main (PR runs are skipped).
  • Deploys the exact commit CI tested (git reset --hard <sha> on the server instead of origin/main).
  • Can also be run by hand from the Actions tab (workflow_dispatch).
  • Waits for the SSM command with aws ssm wait and a 10-minute timeout.
  • Posts the deploy result to Discord.

Production Deployment Script

  • New verify-ci job: if Kaapi Guardrails CI didn't pass on the tagged commit, the release stops.
  • deploy runs only after verify-ci passes.
  • Fixed the checkout ref (it used release.tag_name, which is empty when a tag is pushed).
  • Waits for the SSM command with aws ssm wait and a 15-minute timeout.
  • Posts the deploy result to Discord, with a note when CI blocked the release.

Before submitting a pull request, please ensure that you mark these task.

  • Ran fastapi run --reload app/main.py or docker compose up in the repository root and test.

@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: ProjectTech4DevAI/kaapi-guardrails/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2c9a428f-4f13-4cbf-adc5-75f513b7886c
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Ayush8923 Ayush8923 self-assigned this Oct 7, 2026

This branch was successfully deployed

1 active (outdated) deployment
Staging — fd49ce21 Deployed Oct 9, 2026 by Ayush8923 via deploy #5
AWS_ENV_SECRETS — af200599 Deployed Oct 7, 2026 by Ayush8923 via deploy #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant