feat(staging): auto-refresh staging on every push to master #46

Merged
shad0w merged 2 commits from feat/staging-auto-refresh into master 2026-06-20 19:55:13 +00:00
Owner

Staging now tracks master automatically.

  • .forgejo/workflows/staging.yml runs on every push to master (every merged PR) on the host runner, rebuilding ppms-staging (port 3200) to the latest master via staging-up.sh. Concurrency-coalesced (newest master wins); also workflow_dispatch for on-demand runs.
  • staging-up.sh: drop --update-env and unset FORGEJO_* so the runner's ephemeral token can't leak into the staging process (same class of bug as the prod deploy fix in #43).

Staging runs pnpm dev, so "rebuild" = checkout latest + restart (the dev server recompiles) — no full prod build. Automation/CI only.

Note: this self-activates on the first master push after it merges.

Staging now tracks master automatically. - `.forgejo/workflows/staging.yml` runs on **every push to master** (every merged PR) on the host runner, rebuilding `ppms-staging` (port 3200) to the latest master via `staging-up.sh`. Concurrency-coalesced (newest master wins); also `workflow_dispatch` for on-demand runs. - `staging-up.sh`: drop `--update-env` and unset `FORGEJO_*` so the runner's ephemeral token can't leak into the staging process (same class of bug as the prod deploy fix in #43). Staging runs `pnpm dev`, so "rebuild" = checkout latest + restart (the dev server recompiles) — no full prod build. Automation/CI only. Note: this self-activates on the first master push after it merges.
shad0w added 1 commit 2026-06-20 19:38:11 +00:00
feat(staging): auto-refresh staging on every push to master
All checks were successful
PR checks / checks (pull_request) Successful in 30s
9f8297aa7e
New .forgejo/workflows/staging.yml rebuilds ppms-staging to latest master on every
merge (push to master) on the host runner, so staging always mirrors the trunk;
concurrency-coalesced + workflow_dispatch. Also drops --update-env from staging-up.sh
(and unsets FORGEJO_*) so the runner's ephemeral token can't leak into ppms-staging.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
shad0w added 1 commit 2026-06-20 19:39:48 +00:00
Merge branch 'master' into feat/staging-auto-refresh
All checks were successful
PR checks / checks (pull_request) Successful in 30s
a0c6ccba3c
shad0w merged commit 64fefd15a8 into master 2026-06-20 19:55:13 +00:00
Sign in to join this conversation.
No description provided.