From 3c295888242cf2061a9b3ebd00377caa42e2b790 Mon Sep 17 00:00:00 2001 From: peptiderepo <273788462+peptiderepo@users.noreply.github.com> Date: Tue, 9 Jun 2026 22:28:41 +0700 Subject: [PATCH] ci(deploy): promote smoke to a production gate (#10) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deploy-production now needs smoke; a smoke FAILURE blocks prod while a skipped smoke (run_smoke:false) still allows it. Automated functional gate replacing the removed human approval gate — hands-off but safe. Agent-Session: cto gate-smoke Co-authored-by: peptiderepo --- .github/workflows/deploy-app.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-app.yml b/.github/workflows/deploy-app.yml index 7ac6703..87188e0 100644 --- a/.github/workflows/deploy-app.yml +++ b/.github/workflows/deploy-app.yml @@ -79,7 +79,10 @@ jobs: deploy-production: name: Deploy to Production - needs: [deploy-staging] + # Smoke is now a GATE: a smoke FAILURE blocks production. A deliberately + # skipped smoke (run_smoke: false) still allows prod via the if-condition. + needs: [deploy-staging, smoke] + if: ${{ !cancelled() && needs.deploy-staging.result == 'success' && needs.smoke.result != 'failure' }} runs-on: ubuntu-latest environment: production steps: