diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 0c3e81b..a48f825 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,6 +1,13 @@ name: Deploy to Production run-name: 🚀 Deploy ${{ inputs.bump_version || 'patch' }} by @${{ gitea.actor }} +# ── Concurrency: one deploy at a time, cancel queued ones ── +# Why: prevents race conditions when CI triggers deploy while +# a manual deploy is still running. The latest deploy wins. +concurrency: + group: deploy-production + cancel-in-progress: false + # ─────────────────────────────────────────────────── # Trigger: automatic after CI success, or manual dispatch. # Runner: uses ubuntu-latest label (consistently present on @@ -203,9 +210,9 @@ jobs: fi } - check "/dashboard" "Dashboard" 200 - check "/health" "Health API" 200 - check "/api/swagger" "API Swagger" 200 + check "/dashboard" "Dashboard" 200 + check "/health" "Health API" 200 + check "/swagger" "API Swagger" 200 echo "" echo "Results: $PASS passed, $FAIL failed"