castai-ci-integration

Featured

Integrate CAST AI policy validation and cost checks into CI/CD pipelines. Use when adding CAST AI savings verification to GitHub Actions, validating Terraform plans, or gating deployments on cost thresholds. Trigger with phrases like "cast ai CI", "cast ai github actions", "cast ai terraform CI", "cast ai pipeline".

AI & Automation 2,944 stars 440 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# CAST AI CI Integration ## Overview Add CAST AI cost validation to CI/CD pipelines: verify savings thresholds, validate Terraform plans before apply, and gate deployments on autoscaler health. ## Prerequisites - GitHub Actions enabled - CAST AI API key stored as repository secret - Terraform state accessible from CI (if using Terraform) ## Instructions ### Step 1: GitHub Actions -- Savings Gate ```yaml # .github/workflows/castai-check.yml name: CAST AI Cost Check on: pull_request: paths: ["terraform/**", "k8s/**"] schedule: - cron: "0 8 * * 1" # Weekly Monday report jobs: cost-check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Check CAST AI Savings env: CASTAI_API_KEY: ${{ secrets.CASTAI_API_KEY }} CASTAI_CLUSTER_ID: ${{ secrets.CASTAI_CLUSTER_ID }} run: | SAVINGS=$(curl -s -H "X-API-Key: ${CASTAI_API_KEY}" \ "https://api.cast.ai/v1/kubernetes/clusters/${CASTAI_CLUSTER_ID}/savings") PERCENT=$(echo "$SAVINGS" | jq -r '.savingsPercentage') MONTHLY=$(echo "$SAVINGS" | jq -r '.monthlySavings') echo "### CAST AI Savings Report" >> $GITHUB_STEP_SUMMARY echo "- Monthly savings: \$${MONTHLY}" >> $GITHUB_STEP_SUMMARY echo "- Savings percentage: ${PERCENT}%" >> $GITHUB_STEP_SUMMARY # Fail if savings drop below threshold if (( $(echo "$PERCENT < 10" | bc -l) )); then echo "WARNIN...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category