Skip to content

Commit 024104f

Browse files
ppradyothclaude
andcommitted
Gate Render deploy on CI passing via deploy hook
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 2841659 commit 024104f

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,18 @@ jobs:
110110
severity: HIGH,CRITICAL
111111
exit-code: "1"
112112
format: table
113+
114+
# ── Deploy to Render ─────────────────────────────────────────────────────────
115+
# Only runs if ALL previous jobs pass. Triggers Render backend deploy via hook.
116+
deploy:
117+
name: Deploy backend to Render
118+
runs-on: ubuntu-latest
119+
needs: [backend, frontend, trivy-fs, trivy-image]
120+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
121+
steps:
122+
- name: Trigger Render deploy
123+
run: |
124+
curl -X POST "${{ secrets.RENDER_DEPLOY_HOOK_URL }}" \
125+
--fail \
126+
--silent \
127+
--show-error

0 commit comments

Comments
 (0)