Fix staging auto-deploy: env write + port isolation #3

Merged
cesnimda merged 1 commits from fix/staging-parity into develop 2026-07-01 12:50:12 +02:00
Owner

Fixes found on the first host-mode staging deploy:

  • per-line env write (here-string terminator broke under the runner's script wrapping, leaving POSTGRES_PASSWORD blank)
  • !override on staging ports so the overlay replaces base ports instead of merging (staging no longer squats on prod 8080/8081)

Verified locally: compose config shows only 18080/18081/15432.

🤖 Generated with Claude Code

Fixes found on the first host-mode staging deploy: - per-line env write (here-string terminator broke under the runner's script wrapping, leaving POSTGRES_PASSWORD blank) - `!override` on staging `ports` so the overlay replaces base ports instead of merging (staging no longer squats on prod 8080/8081) Verified locally: compose config shows only 18080/18081/15432. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
cesnimda added 1 commit 2026-07-01 12:45:06 +02:00
fix(staging): robust env write + stop double-binding prod ports
CI / backend (pull_request) Successful in 1m2s
CI / frontend (pull_request) Successful in 21s
Security / secrets (pull_request) Successful in 6s
Security / dependencies (pull_request) Successful in 1m4s
3f8b5c6ea4
Two fixes to the auto-deploy path found on the first host-mode run:
- Write deploy/.env.staging line-by-line instead of a here-string, so the step
  can't be broken by how act_runner indents/wraps the PowerShell script (the
  here-string terminator must be col 0; the runner's wrapping broke it, leaving
  POSTGRES_PASSWORD blank so postgres/api failed while frontend came up).
- Tag the staging 'ports' lists with !override so the overlay REPLACES the base
  ports instead of merging — staging no longer also binds prod's 8080/8081.
Verified locally: compose config shows only 18080/18081/15432.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
cesnimda merged commit d9a07a01b2 into develop 2026-07-01 12:50:12 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cesnimda/Inboxintel#3