Trigger cd-staging on its own config changes + workflow_dispatch

So a port bump or compose edit doesn't sit unapplied until the next
apps/ push, and so persistent staging can be redeployed manually
without forcing a no-op apps/ change.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-05-03 22:39:16 +02:00
parent 34711550fc
commit e93cfd2adb
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -12,6 +12,10 @@ on:
- "apps/**"
- "packages/**"
- "pnpm-lock.yaml"
# Also redeploy when the staging plumbing itself changes, so a port
# bump or compose edit doesn't sit unapplied until the next apps/ push.
- "infrastructure/docker-compose.staging.yml"
- ".github/workflows/cd-staging.yml"
pull_request:
types: [opened, synchronize, reopened, closed]
paths:
@ -88,10 +92,10 @@ jobs:
secrets: |
SENTRY_AUTH_TOKEN=/tmp/sentry_token
# ── Deploy persistent staging (main push) ────────────────────────────
# ── Deploy persistent staging (main push or manual dispatch) ─────────
deploy-staging:
name: Deploy Staging
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'
needs: [build-images]
runs-on: ubuntu-latest
environment: production