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:
parent
34711550fc
commit
e93cfd2adb
1 changed files with 6 additions and 2 deletions
8
.github/workflows/cd-staging.yml
vendored
8
.github/workflows/cd-staging.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue